utils

package
v0.0.0-...-2bb96b8 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2020 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Monitormode bool
	Attackmode  bool
	Target      string
	Data        map[string]string
)
View Source
var (
	ErrUnSupportHaystack = errors.New("haystack must be slice, array")
)

Functions

func CutData

func CutData(data string) (string, uuid.UUID)

func GetAddr

func GetAddr(address string) (string, int)

func In

func In(haystack interface{}, needle interface{}) (bool, error)

func InIntSlice

func InIntSlice(haystack []int, needle int) bool

func InIntSliceMapKeyFunc

func InIntSliceMapKeyFunc(haystack []int) func(int) bool

func InIntSliceSortedFunc

func InIntSliceSortedFunc(haystack []int) func(int) bool

func InStringSlice

func InStringSlice(haystack []string, needle string) bool

func InStringSliceMapKeyFunc

func InStringSliceMapKeyFunc(haystack []string) func(string) bool

func InStringSliceSortedFunc

func InStringSliceSortedFunc(haystack []string) func(string) bool

func LoadConfig

func LoadConfig()

func MapKeyInIntSlice

func MapKeyInIntSlice(haystack []int, needle int) bool

func MapKeyInStringSlice

func MapKeyInStringSlice(haystack []string, needle string) bool

func SaveData

func SaveData()

func SortInIntSlice

func SortInIntSlice(haystack []int, needle int) bool

func SortInStringSlice

func SortInStringSlice(haystack []string, needle string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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