IsJSON returns true if the format is the JSON format
()
| 35 | |
| 36 | // IsJSON returns true if the format is the JSON format |
| 37 | func (f Format) IsJSON() bool { |
| 38 | return string(f) == JSONFormatKey |
| 39 | } |
| 40 | |
| 41 | // Contains returns true if the format contains the substring |
| 42 | func (f Format) Contains(sub string) bool { |