util

package
v1.0.0-beta.98 Latest Latest
Warning

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

Go to latest
Published: May 17, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ObjFlattenDelimiter = "."
)

Variables

View Source
var Service = "tigris-server"

Service program name used in logging and monitoring.

View Source
var Version string

Version of this build.

Functions

func Error

func Error(err error, msg string, args ...any) error

func ExecTemplate

func ExecTemplate(w io.Writer, tmpl string, vars any) error

func Fatal

func Fatal(err error, msg string, args ...any)

func FlatMap

func FlatMap(data map[string]any, notFlat container.HashSet) map[string]any

func IsTTY

func IsTTY(f *os.File) bool

func JSONToMap

func JSONToMap(data []byte) (map[string]any, error)

func MapToJSON

func MapToJSON(data map[string]any) ([]byte, error)

func PrettyJSON

func PrettyJSON(s any) error

func PrintError

func PrintError(err error)

func RawMessageToByte

func RawMessageToByte(arr []jsoniter.RawMessage) [][]byte

func Stdoutf

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

func UnFlatMap

func UnFlatMap(flat map[string]any, ignoreExtra bool) map[string]any

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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