diff --git a/mains/bitlua.go b/mains/bit32lua.go similarity index 100% rename from mains/bitlua.go rename to mains/bit32lua.go diff --git a/mains/utf8lua.go b/mains/utf8lua.go index 5a149d79..99b5233e 100644 --- a/mains/utf8lua.go +++ b/mains/utf8lua.go @@ -1,11 +1,12 @@ package mains import ( - "github.com/yuin/gopher-lua" "strings" + + "github.com/yuin/gopher-lua" ) -func utf8code(L *lua.LState) int { +func utf8codes(L *lua.LState) int { lstr, ok := L.Get(-1).(lua.LString) if !ok { L.Push(lua.LNil) @@ -34,6 +35,6 @@ func utf8code(L *lua.LState) int { func SetupUtf8Table(L *lua.LState) { table := L.NewTable() - L.SetField(table, "codes", L.NewFunction(utf8code)) + L.SetField(table, "codes", L.NewFunction(utf8codes)) L.SetGlobal("utf8", table) }