Documentation
¶
Index ¶
Constants ¶
View Source
const ( FileTypeYAML = "yaml" FileTypeJSON = "json" FileTypeCSV = "csv" FileTypeString = "string" FileTypeUnknown = "unknown" )
Variables ¶
This section is empty.
Functions ¶
func IsJSONString ¶ added in v0.0.5
IsJSONString checks if the passed content of JSON string.
Types ¶
type Object ¶
type Object string
Object implements method that check for file content type.
func (Object) CheckFileType ¶
CheckFileType checks the file type of the content passed, it validates for YAML/JSON.
Click to show internal directories.
Click to hide internal directories.