stringutil

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRandomString

func GetRandomString(len int) string

func Hash

func Hash(s string) uint32

func IsStringInSlice added in v0.0.5

func IsStringInSlice(a string, list []string) bool

func IsStringsEquals added in v0.0.5

func IsStringsEquals(a []string, b []string) bool

func RemoveFromStrings added in v0.0.5

func RemoveFromStrings(s []string, r string) []string

func StrPtr

func StrPtr(s string) *string

func StringContains

func StringContains(arr []string, str string) bool

func ToSnakeCase

func ToSnakeCase(str string) string

Types

type StringIterator

type StringIterator interface {
	Value() string
	Next() bool
	Err() error
}

func NewStringIterator

func NewStringIterator(loadMoreFn func() ([]string, error)) StringIterator

type StringSet

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

func NewStringSet

func NewStringSet() *StringSet

func (*StringSet) Add

func (ss *StringSet) Add(value ...string)

func (*StringSet) Values

func (ss *StringSet) Values() []string

Jump to

Keyboard shortcuts

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