在go中使用lua示例, 基于gopher-lua!
25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 

15 satır
268 B

package json
import (
"testing"
lua "github.com/yuin/gopher-lua"
)
func TestApi(t *testing.T) {
state := lua.NewState()
PreloadGo(state)
if err := state.DoFile("../testScript/test_json_api.lua"); err != nil {
t.Fatalf("execute test: %s\n", err.Error())
}
}