package
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Jun 10, 2018
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
const (
FileTypeJSON = "JSON"
FileTypeYAML = "YAML"
FileTypeUnknown = ""
)
Load loads/unmarshals the bytes into the correct map according to the filetype.
If no filltype is set it tries to sniff the actual content.
FileType is an enum/constant helper type
DetectFileType tries to detect the corresponding filetype for a file extension
Source Files
¶
Click to show internal directories.
Click to hide internal directories.