Registry / serialization / yuin-gluamapper

yuin-gluamapper

JSON →
library0.0.0-20150323120927-d836955830e7gogounverified

Package gluamapper provides an easy way to map GopherLua tables to Go structs.

go get github.com/yuin/gluamapper
INSTALL
IMPORT
SIG · YUIN-GLUAMAPPER
Y
yuin-gluamapper
serializationgov0.0.0-20150323120927-d836955830e7
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

gluamapper
github.com/yuin/gluamapper

Maps a Lua table to a Go struct.

package main import ( "fmt" "github.com/yuin/gluamapper" lua "github.com/yuin/gopher-lua" ) func main() { L := lua.NewState() defer L.Close() if err := L.DoString(`person = {name = "Alice", age = 30}`); err != nil { panic(err) } var p struct { Name string Age int } err := gluamapper.Map(L.GetGlobal("person").(*lua.LTable), &p) fmt.Println(p, err) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20150323120927-d836955830e7latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
31 hits · last 30 days
node
26
OpenAI (training)
1
Resources
yuin-gluamapper — go get yuin-gluamapper · libregistry