You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Check if there's already an init() function in the source file
61
+
hasInitFunction:=false
62
+
for_, fn:=rangeinternalFunctions {
63
+
ifstrings.HasPrefix(fn, "func init()") {
64
+
hasInitFunction=true
65
+
fmt.Printf("Warning: An init() function already exists in the source file. Make sure to call frankenphp.RegisterExtension(unsafe.Pointer(&C.ext_module_entry)) in your init function.\n")
0 commit comments