MCPcopy Index your code
hub / github.com/yuin/gopher-lua / LoadString

Method LoadString

auxlib.go:392–394  ·  view source on GitHub ↗
(source string)

Source from the content-addressed store, hash-verified

390}
391
392func (ls *LState) LoadString(source string) (*LFunction, error) {
393 return ls.Load(strings.NewReader(source), "<string>")
394}
395
396func (ls *LState) DoFile(path string) error {
397 if fn, err := ls.LoadFile(path); err != nil {

Callers 3

DoStringMethod · 0.95
loadlineFunction · 0.80
multilineFunction · 0.80

Calls 1

LoadMethod · 0.95

Tested by

no test coverage detected