func (m *MatchQuery) UnmarshalCaddyfile(d *caddyfile.Dispenser) error {
	if *m == nil {
		*m = make(map[string][]string)
	}
	for d.Next() {
		for _, query := range d.RemainingArgs() {
			if query == "" {
				continue
			}
			parts := strings.SplitN(query, "=", 2)
			if len(parts) != 2 {
				return d.Errf("malformed query matcher token: %s; must be in param=val format", d.Val())
			}
			url.Values(*m).Add(parts[0], parts[1])
		}
		if d.NextBlock(0) {
			return d.Err("malformed query matcher: blocks are not supported")
		}
	}
	return nil
}
// UnmarshalCaddyfile implements caddyfile.Unmarshaler.
UnmarshalCaddyfile implements caddyfile.Unmarshaler.
// UnmarshalCaddyfile implements caddyfile . Unmarshaler .
func (m *MatchQuery) UnmarshalCaddyfile(d *caddyfile.Dispenser) error {
	if *m == nil {
		*m = make(map[string][]string)
	}
	for d.Next() {
		for _, query := range d.RemainingArgs() {
			if query == "" {
				continue
			}
			parts := strings.SplitN(query, "=", 2)
			if len(parts) != 2 {
				return d.Errf("malformed query matcher token: %s; must be in param=val format", d.Val())
			}
			url.Values(*m).Add(parts[0], parts[1])
		}
		if d.NextBlock(0) {
			return d.Err("malformed query matcher: blocks are not supported")
		}
	}
	return nil
}
func ( m * MatchQuery ) UnmarshalCaddyfile ( d * caddyfile . Dispenser ) error { if * m == nil { * m = make ( map [ string ] [ ] string ) } for d . Next ( ) { for _ , query := range d . RemainingArgs ( ) { if query == " " { continue } parts := strings . SplitN ( query , " " , 2 ) if len ( parts ) != 2 { return d . Errf ( " " , d . Val ( ) ) } url . Values ( * m ) . Add ( parts [ 0 ] , parts [ 1 ] ) } if d . NextBlock ( 0 ) { return d . Err ( " " ) } } return nil }
UnmarshalCaddyfile implements caddyfile.Unmarshaler.
UnmarshalCaddyfile implements caddyfile . Unmarshaler .