You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should be able to push arbitrary types on Lua, such as structs with fields and methods. For instances:
func (l*lua.State) int {
u, err:= url.Parse(...)
iferr!=nil { ... }
returnlua.DeepPush(l, u)
}
Would expose all the fields and methods of var u url.URL. Changing the fields from lua would change the fields in the actual u on the Go side, so that u.String() would reflect the changes made in lua:
Should be able to push arbitrary types on Lua, such as structs with fields and methods. For instances:
Would expose all the fields and methods of
var u url.URL
. Changing the fields from lua would change the fields in the actualu
on the Go side, so thatu.String()
would reflect the changes made in lua:The text was updated successfully, but these errors were encountered: