github.com/arnodel/golua@v0.0.0-20230215163904-e0b5347eaaa1/runtime/debug.go (about) 1 package runtime 2 3 import "fmt" 4 5 // DebugInfo contains info about a continuation that can be looked at for 6 // debugging purposes (and tracebacks). 7 type DebugInfo struct { 8 Source string 9 Name string 10 CurrentLine int32 11 } 12 13 // String formats the data contained in DebugInfo in a human-readable way. 14 func (i DebugInfo) String() string { 15 return fmt.Sprintf("file=%s func=%s line=%d", i.Source, i.Name, i.CurrentLine) 16 }