lots o fixes
This commit is contained in:
15
examples/embed.go
Normal file
15
examples/embed.go
Normal file
@@ -0,0 +1,15 @@
|
||||
//go:build ignore
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
"log"
|
||||
)
|
||||
|
||||
const program = `println("Hello World!")`
|
||||
|
||||
func main() {
|
||||
if err := monkey.ExecString(program, false, false); err != nil {
|
||||
log.Fatal("error running program")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user