utils

package
v0.0.0-...-a30bb4d Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2020 License: MIT Imports: 1 Imported by: 14

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

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