utils

package
v0.1.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LogToErrorAndReturn

func LogToErrorAndReturn(ctx context.Context, format string, args ...interface{}) error

func MustParseDuration added in v0.1.1

func MustParseDuration(d string) time.Duration

func MustParseRAMInBytes added in v0.1.1

func MustParseRAMInBytes(size string) int64

func PrettyPrintJSON

func PrettyPrintJSON(x interface{}) string

Returns the JSON formatted string representation of the specified object.

Types

type StringSet

type StringSet map[string]struct{}

Jump to

Keyboard shortcuts

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