Documentation
¶
Index ¶
- Constants
- Variables
- func CreateFolders(path string, perm os.FileMode) error
- func DecodeBase64(encoded []byte) ([]byte, error)
- func EncodeBase64(decoded []byte) ([]byte, error)
- func ExistsFile(path string) bool
- func GetCurrentPath() string
- func GetShareLibExt() string
- func HomeFolder() string
- func IsFolder(path string) bool
- func Marshal(encodingValue encoding.Encoding, target interface{}) ([]byte, error)
- func MarshalToFile(file string, perm os.FileMode, encoding encoding.Encoding, target interface{}) error
- func ReadFile(path string) ([]byte, error)
- func TempFolder() string
- func UniqueTempFolder(suffix string) string
- func Unmarshal(data []byte, encodingValue encoding.Encoding, target interface{}) error
- func UnmarshalFile(file string, encodingValue encoding.Encoding, target interface{}) error
- func WriteFile(path string, data []byte, perm os.FileMode, override bool) error
Constants ¶
View Source
const BufferSize = 1024
Variables ¶
View Source
var ( DefaultFilePerm os.FileMode = 0664 DefaultFolderPerm os.FileMode = 0664 )
Functions ¶
func DecodeBase64 ¶
func EncodeBase64 ¶
func ExistsFile ¶
func GetShareLibExt ¶
func GetShareLibExt() string
Gets the Shared libraries extension included by dot, related to current O/S
func MarshalToFile ¶
func MarshalToFile(file string, perm os.FileMode, encoding encoding.Encoding, target interface{}) error
Marshal given interface (pointer to structure) bytes to given file path with given encoding type
func TempFolder ¶
func TempFolder() string
func UniqueTempFolder ¶
func Unmarshal ¶
Unmarshal bytes and fill the given interface (pointer to structure) with given encoding type
func UnmarshalFile ¶
Unmarshal bytes in given file path and fill the given interface (pointer to structure) with given encoding type
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.