util

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyList

func CopyList[T any](original []*T) []*T

func GenerateBase36

func GenerateBase36(length int) string

GenerateBase36 generates a random base-36 encoded string of specified length.

func MergeLabels

func MergeLabels(ls ...labels.Label) labels.Label

func PtrBool

func PtrBool(b bool) *bool

func PtrInt

func PtrInt(i int) *int

func PtrString

func PtrString(s string) *string

func StringToTimestamp

func StringToTimestamp(s string) time.Time

func StringToUint64

func StringToUint64(s string) uint64

func Uint64ToString

func Uint64ToString(u uint64) string

Types

type Serializer

type Serializer struct {
	// contains filtered or unexported fields
}

func NewSerializer

func NewSerializer(i interface{}, b *bytes.Buffer) *Serializer

func (*Serializer) Bytes

func (s *Serializer) Bytes() ([]byte, error)

func (*Serializer) Hash

func (s *Serializer) Hash() ([32]byte, error)

func (*Serializer) HashString

func (s *Serializer) HashString() (string, error)

Jump to

Keyboard shortcuts

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