Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterDecoder ¶
func RegisterDecoder(format Format, decoder ConfDecoder, exts []string, mimes []string) error
RegisterDecoder registers a decoder for given scheme
Types ¶
type ConfDecoder ¶
ConfDecoder defines configuration decoder interface
func GetDecoder ¶
func GetDecoder(format Format) (ConfDecoder, error)
GetDecoder returns decoder for given format
type Format ¶
type Format string
Format represents configuration file format type
func FormatFromExtension ¶
FormatFromExtension returns format from file extension with validation
func FormatFromMIME ¶
FormatFromMIME returns format from MIME type with validation
Click to show internal directories.
Click to hide internal directories.