OLD | NEW |
1 package data | 1 package data |
2 | 2 |
3 import ( | 3 import ( |
4 "bufio" | 4 "bufio" |
5 "bytes" | 5 "bytes" |
6 "fmt" | 6 "fmt" |
7 "regexp" | 7 "regexp" |
8 "strconv" | 8 "strconv" |
9 "strings" | 9 "strings" |
10 | 10 |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
184 s := fmt.Sprintf("StackTrace with %d frames:\n", len(st.Frames)) | 184 s := fmt.Sprintf("StackTrace with %d frames:\n", len(st.Frames)) |
185 for _, f := range st.Frames { | 185 for _, f := range st.Frames { |
186 s += fmt.Sprintf("\t%s\n", f.String()) | 186 s += fmt.Sprintf("\t%s\n", f.String()) |
187 } | 187 } |
188 return s | 188 return s |
189 } | 189 } |
190 | 190 |
191 func (st *StackTrace) IsEmpty() bool { | 191 func (st *StackTrace) IsEmpty() bool { |
192 return len(st.Frames) == 0 | 192 return len(st.Frames) == 0 |
193 } | 193 } |
OLD | NEW |