core_utils

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAppDir

func GetAppDir() string

func LoadJsonFile

func LoadJsonFile(path string, out any) error

func LoadYamlFile

func LoadYamlFile(path string, out any) error

func LogDebug

func LogDebug(format string, args ...any)

func LogError

func LogError(format string, args ...any)

func LogInfo

func LogInfo(format string, args ...any)

func LogPanic

func LogPanic(format string, args ...any)

func LogWarn

func LogWarn(format string, args ...any)

func MarshalJson

func MarshalJson(val interface{}) ([]byte, error)

func MarshalJsonString

func MarshalJsonString(val interface{}) (string, error)

func MarshalPrettyJson

func MarshalPrettyJson(val interface{}) ([]byte, error)

func SaveJsonFile

func SaveJsonFile(path string, out any) error

func UnmarshalJson

func UnmarshalJson(buf []byte, val interface{}, path ...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