Skip to content

Commit

Permalink
media: Add JSON tags to Type
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Jul 31, 2017
1 parent 9c19778 commit e321306
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions media/mediaType.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ const (
// If suffix is not provided, the sub type will be used.
// See // https://en.wikipedia.org/wiki/Media_type
type Type struct {
MainType string // i.e. text
SubType string // i.e. html
Suffix string // i.e html
Delimiter string // defaults to "."
MainType string `json:"mainType"` // i.e. text
SubType string `json:"subType"` // i.e. html
Suffix string `json:"suffix"` // i.e html
Delimiter string `json:"delimiter"` // defaults to "."
}

// FromTypeString creates a new Type given a type sring on the form MainType/SubType and
Expand Down

0 comments on commit e321306

Please sign in to comment.