StringThisRun returns a string of only the log entries generated by actions in this run of the engine.
()
| 52 | // StringThisRun returns a string of only the log entries generated |
| 53 | // by actions in this run of the engine. |
| 54 | func (elog *Log) StringThisRun() string { |
| 55 | b := &strings.Builder{} |
| 56 | |
| 57 | for _, l := range elog.Log[elog.runOffset:] { |
| 58 | fmt.Fprint(b, l.String()) |
| 59 | } |
| 60 | |
| 61 | return b.String() |
| 62 | } |
| 63 | |
| 64 | func (elog *Log) String() string { |
| 65 | b := &strings.Builder{} |