utils

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConcatenateByteSlice

func ConcatenateByteSlice(items ...[]byte) []byte

func MapKeys

func MapKeys(m map[string]interface{}) (keys []string)

func MaxUint16

func MaxUint16(items ...uint16) uint16

func MaxUint32

func MaxUint32(items ...uint32) uint32

func Milliseconds

func Milliseconds(d time.Duration) int

func MinDuration

func MinDuration(items ...time.Duration) time.Duration

Types

type Set

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

func NewSet

func NewSet(items ...interface{}) *Set

func (*Set) Has

func (s *Set) Has(item interface{}) bool

func (*Set) Len

func (s *Set) Len() int

func (*Set) StringItems

func (s *Set) StringItems() (keys []string)

Jump to

Keyboard shortcuts

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