Documentation ¶
Index ¶
- Constants
- func AppDataDir() string
- func Compress(data []byte) (compressedBytes []byte, err error)
- func Decode(encoded string) (data []byte)
- func Decompress(compressedBytes []byte) (data []byte, err error)
- func Deserialize(serialized string, data interface{}) (err error)
- func DirExists(path string) bool
- func Encode(data []byte) (encoded string)
- func FileExists(path string) bool
- func ReadFromFile(filePath string) ([]byte, error)
- func ReadFromYAML(filePath string, out interface{}) error
- func ResetAppDataDir() error
- func Serialize(data interface{}) (string, error)
- func WriteToFile(filePath string, content []byte) error
- func WriteToYAML(filePath string, data interface{}) error
Constants ¶
View Source
const ( SLV = "SLV" Version uint8 = 1 )
Variables ¶
This section is empty.
Functions ¶
func AppDataDir ¶
func AppDataDir() string
func Decompress ¶
func Deserialize ¶
func FileExists ¶
func ReadFromFile ¶
func ReadFromYAML ¶
func ResetAppDataDir ¶
func ResetAppDataDir() error
func WriteToFile ¶
func WriteToYAML ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.