util

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsIPv4

func IsIPv4(ipAddr string) bool

func IsIPv6

func IsIPv6(ipAddr string) bool

Types

type StringSet

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

func NewStringSet

func NewStringSet() *StringSet

func (*StringSet) Add

func (set *StringSet) Add(str string)

func (*StringSet) AddAll

func (set *StringSet) AddAll(itemSlice []string)

func (*StringSet) Clone

func (set *StringSet) Clone() *StringSet

func (*StringSet) Has

func (set *StringSet) Has(str string) bool

func (*StringSet) Intersection

func (set *StringSet) Intersection(set2 *StringSet) *StringSet

func (*StringSet) Remove

func (set *StringSet) Remove(str string)

func (*StringSet) RemoveAll

func (set *StringSet) RemoveAll(other *StringSet)

func (*StringSet) Size

func (set *StringSet) Size() int

func (*StringSet) ToArray

func (set *StringSet) ToArray() []string

Jump to

Keyboard shortcuts

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