util

package
v1.0.0-beta.73 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ObjFlattenDelimiter = "."
)

Variables

View Source
var Service string = "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 ...interface{}) error

func ExecTemplate

func ExecTemplate(w io.Writer, tmpl string, vars interface{}) error

func Fatal

func Fatal(err error, msg string, args ...interface{})

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 Stdoutf

func Stdoutf(format string, args ...interface{})

func UnFlatMap

func UnFlatMap(flat map[string]any) 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