func (state *State) LoadFrom(r io.Reader) error {
	return state.LoadChunk("?", r, BinaryMode|TextMode)
}
LoadFrom uses Load to load the Lua chunk from the reader r.

See https://www.lua.org/manual/5.3/manual.html#luaL_loadbuffer
See https://www.lua.org/manual/5.3/manual.html#luaL_loadbufferx
package lua
import (
	"fmt"
	"io"
	"syscall"
)
func (state *State) ArgCheck(cond bool, arg int, msg string) {
	if !cond {
		state.ArgError(arg, msg)
	}
}
func (state *State) ArgError(arg int, msg string) int {
	return state.Errorf("bad argument #%d (%s)", arg, msg)
}
func (state *State) FileResult(err error, filename string) int {
	if err == nil {
		state.Push(true)
		return 1
	}
	state.Push(nil)
	if errStr := err.Error(); filename != "" {
		state.Push(fmt.Sprintf("%s: %s", filename, errStr))
	} else {
		state.Push(errStr)
	}
	if errno, ok := err.(syscall.Errno); ok {
		state.Push(int(errno))
	} else {
		state.Push(0)
	}
	return 3
}
func (state *State) ExecFrom(r io.Reader) error {
	return state.ExecChunk("?", r, BinaryMode|TextMode)
}
func (state *State) ExecText(text string) error {
	return state.ExecChunk("?", text, BinaryMode|TextMode)
}
func (state *State) ExecFile(file string) error {
	return state.ExecChunk(file, nil, BinaryMode|TextMode)
}