Documentation
¶
Index ¶
- func CopyList[T any](original []*T) []*T
- func GenerateBase36(length int) string
- func MergeLabels(ls ...labels.Label) labels.Label
- func PtrBool(b bool) *bool
- func PtrInt(i int) *int
- func PtrString(s string) *string
- func StringToTimestamp(s string) time.Time
- func StringToUint64(s string) uint64
- func Uint64ToString(u uint64) string
- type Serializer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateBase36 ¶
GenerateBase36 generates a random base-36 encoded string of specified length.
func StringToTimestamp ¶
func StringToUint64 ¶
func Uint64ToString ¶
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)
Click to show internal directories.
Click to hide internal directories.