util

package
v0.2.10 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2025 License: MIT Imports: 8 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

func ListFilesRecursively added in v0.2.8

func ListFilesRecursively(dir string, set *StringSet) error

Types

type GoroutineSafeBuffer added in v0.2.10

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

func NewGoroutineSafeBuffer added in v0.2.10

func NewGoroutineSafeBuffer() *GoroutineSafeBuffer

func (*GoroutineSafeBuffer) Bytes added in v0.2.10

func (g *GoroutineSafeBuffer) Bytes() []byte

func (*GoroutineSafeBuffer) Len added in v0.2.10

func (g *GoroutineSafeBuffer) Len() int

func (*GoroutineSafeBuffer) Read added in v0.2.10

func (g *GoroutineSafeBuffer) Read(p []byte) (n int, err error)

func (*GoroutineSafeBuffer) Reset added in v0.2.10

func (g *GoroutineSafeBuffer) Reset()

func (*GoroutineSafeBuffer) String added in v0.2.10

func (g *GoroutineSafeBuffer) String() string

func (*GoroutineSafeBuffer) Write added in v0.2.10

func (g *GoroutineSafeBuffer) Write(p []byte) (n int, err error)

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