-
Notifications
You must be signed in to change notification settings - Fork 186
Open
Description
I'd like to unmarchal a YAML config into a struct holding a MIME field.
type Cfg struct {
Mime mimetype.MIME `yaml:"mime" json:"mime" default:"application/json"`
}Doing so produces:
yaml: unmarshal errors:
line 1: cannot unmarshal !!str `applica...` into mimetype.MIME
panic: json: cannot unmarshal string into Go struct field Cfg.mime of type mimetype.MIME
Could you add the corresponding unmarchaling function?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels