github.com/arnodel/golua@v0.0.0-20230215163904-e0b5347eaaa1/lib/base/type.go (about) 1 package base 2 3 import ( 4 rt "github.com/arnodel/golua/runtime" 5 ) 6 7 func typeString(t *rt.Thread, c *rt.GoCont) (rt.Cont, error) { 8 if err := c.Check1Arg(); err != nil { 9 return nil, err 10 } 11 return c.PushingNext1(t.Runtime, rt.StringValue(c.Arg(0).TypeName())), nil 12 }