Skip to content

Instantly share code, notes, and snippets.

@jarvisniu
Created October 13, 2017 09:16
Show Gist options
  • Select an option

  • Save jarvisniu/5e0089b9a8c1b180c6410b74933f78c0 to your computer and use it in GitHub Desktop.

Select an option

Save jarvisniu/5e0089b9a8c1b180c6410b74933f78c0 to your computer and use it in GitHub Desktop.
Hello gopher-lua
package main
import (
"github.com/yuin/gopher-lua"
)
func main () {
L := lua.NewState()
defer L.Close()
if err := L.DoFile("hello.lua"); err != nil {
panic(err)
}
}
print(1 + 1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment