diff options
Diffstat (limited to 'media')
-rw-r--r-- | media/mediaType.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/media/mediaType.go b/media/mediaType.go index 1627a9d52..69bb9182a 100644 --- a/media/mediaType.go +++ b/media/mediaType.go @@ -163,6 +163,7 @@ func (m Type) Type() string { return m.MainType + "/" + m.SubType } +// For internal use. func (m Type) String() string { return m.Type() } @@ -510,11 +511,13 @@ func DecodeTypes(mms ...map[string]any) (Types, error) { } // IsZero reports whether this Type represents a zero value. +// For internal use. func (m Type) IsZero() bool { return m.SubType == "" } // MarshalJSON returns the JSON encoding of m. +// For internal use. func (m Type) MarshalJSON() ([]byte, error) { type Alias Type return json.Marshal(&struct { |