MCPcopy Create free account
hub / github.com/Shopify/go-lua / LoadBuffer

Function LoadBuffer

auxiliary.go:527–529  ·  view source on GitHub ↗
(l *State, b, name, mode string)

Source from the content-addressed store, hash-verified

525func LoadString(l *State, s string) error { return LoadBuffer(l, s, s, "") }
526
527func LoadBuffer(l *State, b, name, mode string) error {
528 return l.Load(strings.NewReader(b), name, mode)
529}
530
531// NewStateEx creates a new Lua state. It calls NewState and then sets a panic
532// function that prints an error message to the standard error output in case

Callers 2

base.goFile · 0.85
LoadStringFunction · 0.85

Calls 1

LoadMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…