commons

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 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 any) error

func ReadFromYAML

func ReadFromYAML(filePath string, out any) 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 any) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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