utils

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: May 25, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvKey     = "ENV"
	EnvDefault = "dev"

	AppJSONKey        = "app"
	AppVersionJSONKey = "appVersion"
	HostNameJSONKey   = "hostname"
	EnvJSONKey        = "env"
	StackJSONKey      = "stack"
	ErrorJSONKey      = "error"
)

Variables

This section is empty.

Functions

func GetEnv

func GetEnv(envKey string) (env string)

Get environment

func GetHostname

func GetHostname() (hostname string)

GetHostname

func IsEmpty

func IsEmpty(str string) bool

IsEmpty check if the string is empty

func ReadFile

func ReadFile(filePath string) (data []byte, err error)

Read the file

func YAMLUnmarshal

func YAMLUnmarshal(data []byte, v any) (err error)

YAML Unmarshal

Types

This section is empty.

Jump to

Keyboard shortcuts

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