Top 5.8% dependent packages on proxy.golang.org
Top 1.2% dependent repos on proxy.golang.org
Top 3.4% forks on proxy.golang.org
Top 1.2% docker downloads on proxy.golang.org
proxy.golang.org : github.com/layeh/gopher-luar
Package luar simplifies data passing to and from gopher-lua. (https://github.com/yuin/gopher-lua). See documentation of New function. Lua types are automatically converted to match the output Go type (e.g. setting a struct field from Lua). lua.LNil can be converted to any channel, func, interface, map, pointer, slice, unsafepointer, or uintptr value. lua.LBool values are converted to bool. lua.LNumber values are converted to float64. lua.LString values are converted to string. lua.LChannel values are converted to lua.LChannel. *lua.LTable values can be converted to an array, slice, map, struct, or struct pointer. If the table is being assigned with no type information (i.e. to an interface{}), the converted value will have the type map[interface{}]interface{}. The Value field of *lua.LUserData values are converted rather than the *lua.LUserData value itself. *lua.LState values are converted to *lua.LState. *lua.LFunction values are converted to Go functions. If the function is being assigned with no type information (i.e. to a interface{}), the function will have the signature func(...interface{}) []interface{}. The arguments and return values will be converted using the standard luar conversion rules. This package accesses and modifies the Lua state's registry. This happens when functions like New are called, and potentially when luar-created values are used. It is your responsibility to ensure that concurrent access of the state's registry does not happen.
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/layeh/gopher-luar
License: MPL-2.0
Latest release: almost 2 years ago
First release: almost 8 years ago
Namespace: github.com/layeh
Dependent packages: 1
Dependent repositories: 22
Stars: 218 on GitHub
Forks: 53 on GitHub
Docker dependents: 18
Docker downloads: 4,958
See more repository details: repos.ecosyste.ms
Funding links: https://paypal.me/bontibon
Last synced: 4 days ago