Writing PHP Extensions in Go #1778
-
|
I‘m trying build the extension using generator, The example in document: CodeError Output:Error: parse source: parsing classes: parsing file: extension.go:1:1: expected 'package', found 'import' (and 1 more errors) Add a package declaration Error 2 Output:Error: generator error at arginfo generation: failed to generate arginfo: running gen_stub script: exit status 255 |
Beta Was this translation helpful? Give feedback.
Answered by
withinboredom
Jul 31, 2025
Replies: 1 comment
-
|
In go, the package name must match the current directory name. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
vimrus
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In go, the package name must match the current directory name.