We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sample.go
package main import ( "github.com/traefik/yaegi/stdlib" "github.com/traefik/yaegi/stdlib/unsafe" ) var payload = ` package main func main() { StringToBytes("a") } func StringToBytes(s string) []byte { return unsafe.Slice(unsafe.StringData(s), len(s)) } ` func main() { i := interp.New(interp.Options{}) i.Use(stdlib.Symbols) i.Use(unsafe.Symbols) }
normal
package unsafe \"unsafe\" has no symbol Slice"
latest
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The following program
sample.go
triggers an unexpected resultExpected result
normal
Got
package unsafe \"unsafe\" has no symbol Slice"
Yaegi Version
latest
Additional Notes
No response
The text was updated successfully, but these errors were encountered: