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