Get the caller's function name and line to show a better error message
()
| 250 | |
| 251 | // Get the caller's function name and line to show a better error message |
| 252 | func caller() string { |
| 253 | _, file, line, _ := runtime.Caller(2) |
| 254 | return fmt.Sprintf("%s:%d", filepath.Base(file), line) |
| 255 | } |
no outgoing calls
no test coverage detected