utils

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NumberToFloat64 added in v0.0.5

func NumberToFloat64(num interface{}) float64

Types

type Set added in v0.0.6

type Set[T comparable] struct {
	// contains filtered or unexported fields
}

func NewSet added in v0.0.6

func NewSet[T comparable]() *Set[T]

func (*Set[T]) Add added in v0.0.6

func (s *Set[T]) Add(values ...T)

func (*Set[T]) Clear added in v0.0.6

func (s *Set[T]) Clear()

func (*Set[T]) Contains added in v0.0.6

func (s *Set[T]) Contains(value T) bool

func (*Set[T]) FromSlice added in v0.0.6

func (s *Set[T]) FromSlice(source []T) *Set[T]

func (*Set[T]) GetAll added in v0.0.6

func (s *Set[T]) GetAll() []T

func (*Set[T]) IsEmpty added in v0.0.6

func (s *Set[T]) IsEmpty() bool

func (*Set[T]) Len added in v0.0.6

func (s *Set[T]) Len() int

func (*Set[T]) Remove added in v0.0.6

func (s *Set[T]) Remove(value T)

Jump to

Keyboard shortcuts

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