JSON converts val into JSON. Any errors are added to warnings.
(val any)
| 240 | |
| 241 | // JSON converts val into JSON. Any errors are added to warnings. |
| 242 | func (h Helper) JSON(val any) json.RawMessage { |
| 243 | return caddyconfig.JSON(val, h.warnings) |
| 244 | } |
| 245 | |
| 246 | // MatcherToken assumes the next argument token is (possibly) a matcher, |
| 247 | // and if so, returns the matcher set along with a true value. If the next |
no test coverage detected