Documentation
¶
Index ¶
- func BytesToJson(data []byte, convertedData interface{}) error
- func ExtractFromRegex(regex string, data string) ([]string, error)
- func JsonToBytes(data interface{}) ([]byte, error)
- func ListFilesInPath(path string, extention string) ([]string, error)
- func WriteFile(path string, content []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToJson ¶
BytesToJson permit to convert bytes to Json struct It return error if somthing wrong when it convert json to struct It add struct on convertedData interface.
func ExtractFromRegex ¶
ExtractFromRegex permet to extract some substring from regex It return error if regex syntaxe is bad It return nil if regex not match
func JsonToBytes ¶
JsonToBytes permit to convert interface that represent Json to bytes The json is pretty formatted before to be converted in bytes. It return error if something wrong when convert json in byte It return an array of bytes that represent the pretty formated json
func ListFilesInPath ¶
ListFilesInPath permtit to list all file in provided path that match the extension It return error if somethink wrong when it list the file on path It return a list of full path. It return empty list if it doesn't found file
Types ¶
This section is empty.