()
| 36 | } |
| 37 | |
| 38 | func (w Warning) String() string { |
| 39 | var directive string |
| 40 | if w.Directive != "" { |
| 41 | directive = fmt.Sprintf(" (%s)", w.Directive) |
| 42 | } |
| 43 | return fmt.Sprintf("%s:%d%s: %s", w.File, w.Line, directive, w.Message) |
| 44 | } |
| 45 | |
| 46 | // JSON encodes val as JSON, returning it as a json.RawMessage. Any |
| 47 | // marshaling errors (which are highly unlikely with correct code) |
no outgoing calls