MCPcopy Index your code
hub / github.com/Shopify/go-lua / DoFile

Function DoFile

auxiliary.go:576–581  ·  view source on GitHub ↗

DoFile loads and runs the given file.

(l *State, fileName string)

Source from the content-addressed store, hash-verified

574
575// DoFile loads and runs the given file.
576func DoFile(l *State, fileName string) error {
577 if err := LoadFile(l, fileName, ""); err != nil {
578 return err
579 }
580 return l.ProtectedCall(0, MultipleReturns, 0)
581}
582
583// DoString loads and runs the given string.
584func DoString(l *State, s string) error {

Callers

nothing calls this directly

Calls 2

LoadFileFunction · 0.85
ProtectedCallMethod · 0.80

Tested by

no test coverage detected