OpName formats the operand name in a human-readable format.
()
| 80 | |
| 81 | // OpName formats the operand name in a human-readable format. |
| 82 | func (s *StructLog) OpName() string { |
| 83 | return s.Op.String() |
| 84 | } |
| 85 | |
| 86 | // ErrorString formats the log's error as a string. |
| 87 | func (s *StructLog) ErrorString() string { |