maxAddrLength measure the widest address string
()
| 141 | |
| 142 | // maxAddrLength measure the widest address string |
| 143 | func (s Callstack) maxAddrLength() int { |
| 144 | maxw := 0 |
| 145 | for _, f := range s { |
| 146 | w := len("0x") + len(f.Addr.String()) |
| 147 | maxw = max(maxw, w) |
| 148 | } |
| 149 | return maxw |
| 150 | } |
| 151 | |
| 152 | // colorizeUnbackedFrame renders the unbacked frame. |
| 153 | func (f Frame) colorizeUnbacked() string { |