Skip to content

Commit

Permalink
fix struct json tag fields
Browse files Browse the repository at this point in the history
  • Loading branch information
awagner-mainz committed May 19, 2022
1 parent d54fdcc commit 5017f78
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions connegmatcher.go
Expand Up @@ -81,20 +81,20 @@ type MatchConneg struct {
// Query string parameter key to override encoding negotiation. Default: ""
ForceEncodingQueryString string `json:"force_encoding_query_string,omitempty"`
// Variable name (will be prefixed with `conneg_`) to hold result of content negotiation. Default: ""
VarType string `json:"var_type, omitempty"`
VarType string `json:"var_type,omitempty"`
// Variable name (will be prefixed with `conneg_`) to hold result of language negotiation. Default: ""
VarLanguage string `json:"var_language, omitempty"`
VarLanguage string `json:"var_language,omitempty"`
// Variable name (will be prefixed with `conneg_`) to hold result of charset negotiation. Default: ""
VarCharset string `json:"var_charset, omitempty"`
VarCharset string `json:"var_charset,omitempty"`
// Variable name (will be prefixed with `conneg_`) to hold result of encoding negotiation. Default: ""
VarEncoding string `json:"var_encoding, omitempty"`
VarEncoding string `json:"var_encoding,omitempty"`

// the following fields are populated internally/computationally
MatchTTypes []contenttype.MediaType
MatchTLanguages []language.Tag
MatchTCharsets []CharsetOrEncoding
MatchTEncodings []CharsetOrEncoding
LanguageMatcher language.Matcher
MatchTTypes []contenttype.MediaType `json:"omitempty"`
MatchTLanguages []language.Tag `json:"omitempty"`
MatchTCharsets []CharsetOrEncoding `json:"omitempty"`
MatchTEncodings []CharsetOrEncoding `json:"omitempty"`
LanguageMatcher language.Matcher `json:"omitempty"`
logger *zap.Logger
}

Expand Down

0 comments on commit 5017f78

Please sign in to comment.