commons

package
v0.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ByteSlicePtr

func ByteSlicePtr(bytes []byte) *[]byte

func Compress

func Compress(data []byte) (compressedBytes []byte, err error)

func Decode

func Decode(encoded string) (data []byte, err error)

func Decompress

func Decompress(compressedBytes []byte) (data []byte, err error)

func Deserialize

func Deserialize(serialized string, data interface{}) (err error)

func DirExists

func DirExists(path string) bool

func Encode

func Encode(data []byte) (encoded string)

func FileExists

func FileExists(path string) bool

func ReadChildFromYAML

func ReadChildFromYAML(filePath, nodePath string, out interface{}) error

func ReadFromYAML

func ReadFromYAML(filePath string, out interface{}) error

func Serialize

func Serialize(data interface{}) (string, error)

func StringPtr

func StringPtr(s string) *string

func WriteToFile

func WriteToFile(filePath string, content []byte) error

func WriteToYAML

func WriteToYAML(filePath, notice string, data interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL