mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-30 22:39:58 +02:00
@@ -378,6 +378,11 @@ func DecodeTypes(mms ...map[string]interface{}) (Types, error) {
|
||||
return m, nil
|
||||
}
|
||||
|
||||
// IsZero reports whether this Type represents a zero value.
|
||||
func (m Type) IsZero() bool {
|
||||
return m.SubType == ""
|
||||
}
|
||||
|
||||
// MarshalJSON returns the JSON encoding of m.
|
||||
func (m Type) MarshalJSON() ([]byte, error) {
|
||||
type Alias Type
|
||||
|
Reference in New Issue
Block a user