(v any)
| 141 | } |
| 142 | |
| 143 | func autoQuote(v any) string { |
| 144 | switch x := v.(type) { |
| 145 | case string: |
| 146 | // let's avoid printing long strings. it can happen ie. when we are debugging expr with `File()` or similar helpers |
| 147 | if len(x) > 40 { |
| 148 | return fmt.Sprintf("%q", x[:40]+"...") |
| 149 | } |
| 150 | |
| 151 | return fmt.Sprintf("%q", x) |
| 152 | default: |
| 153 | return fmt.Sprintf("%v", x) |
| 154 | } |
| 155 | } |
| 156 | |
| 157 | type opHandler func(out OpOutput, prevOut *OpOutput, ip int, parts []string, vm *vm.VM, program *vm.Program) *OpOutput |
| 158 |
no outgoing calls
no test coverage detected
searching dependent graphs…