在go中使用lua示例, 基于gopher-lua!
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

15 行
268 B

4 年前
  1. package json
  2. import (
  3. "testing"
  4. lua "github.com/yuin/gopher-lua"
  5. )
  6. func TestApi(t *testing.T) {
  7. state := lua.NewState()
  8. PreloadGo(state)
  9. if err := state.DoFile("../testScript/test_json_api.lua"); err != nil {
  10. t.Fatalf("execute test: %s\n", err.Error())
  11. }
  12. }