Documentation ¶
Index ¶
Constants ¶
View Source
const ( NameExt = "ext" NameMime = "mime" )
Variables ¶
View Source
var ( ErrDuplicate = errors.New("duplicate") ErrNotFound = errors.New("not found") )
Functions ¶
Types ¶
type Config ¶
type Config struct { Source string Mimes []Data `yaml:"mime"` MimePrefix string MimeTpl string MimeResult string MimePackage string Extensions []Data `yaml:"ext"` ExtPrefix string ExtTpl string ExtResult string ExtPackage string }
func (*Config) ValidateAndFillExt ¶
type Option ¶
type Option func(*Config)
func WithExtPacakge ¶
func WithExtResult ¶
func WithExtTpl ¶
func WithMimePackage ¶
func WithMimeResult ¶
func WithMimeTpl ¶
Click to show internal directories.
Click to hide internal directories.