util

package
v0.0.0-...-b6813c1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const DebugKey = "DEBUG"

Variables

This section is empty.

Functions

func Debugging

func Debugging() bool

func HasAnyPrefix

func HasAnyPrefix(array []string, prefix string) bool

func Marshal

func Marshal(obj interface{}) ([]byte, error)

Marshal serializes into a GZIP compressed byte array

func RetentionSeconds

func RetentionSeconds(interval string) (uint32, error)

func TrapSignal

func TrapSignal(s os.Signal, f func())

TrapSignal provides a simple signal subscription flow

func Unit

func Unit(interval string) (rune, error)

func Unmarshal

func Unmarshal(ser []byte, object interface{}) error

Unmarshal loads object from given GZIP compressed bytes array

Types

This section is empty.

Jump to

Keyboard shortcuts

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