diff options
author | Bjørn Erik Pedersen <[email protected]> | 2022-04-21 10:59:13 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2022-04-27 23:53:56 +0200 |
commit | fa80fe3c8ab523846178f94fdc65c997d8eef10c (patch) | |
tree | 4266bc03b2f594ffdb10b87d7956d2ed956f4bec /media | |
parent | 11047534e47f2f2c710a6f8504d7415ff27d6024 (diff) | |
download | hugo-fa80fe3c8ab523846178f94fdc65c997d8eef10c.tar.gz hugo-fa80fe3c8ab523846178f94fdc65c997d8eef10c.zip |
Some godoc adjustments and image struct renames
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 { |