utils

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckInput added in v1.3.0

func CheckInput(input Input) error

func Err

func Err(err error, critical bool)

func FilterChar added in v1.3.0

func FilterChar(str string, char string, before bool) string

func FilterIp

func FilterIp(ip string) string

func FilterPort

func FilterPort(ip string) string

func GetRandomString added in v1.3.1

func GetRandomString(strings []string, username string) string

func InSlice

func InSlice(s []string, str string) bool

func Nothing added in v1.3.0

func Nothing()

func Print added in v1.3.0

func Print(v any, level int)

Verbose print

func Remove

func Remove(list []string, str string) []string

Types

type Input

type Input struct {
	Action   string
	Ip       string
	Port     []string
	Username string
	Time     bool
	TimeOut  float64
	Enc      string
}

func Format

func Format(args []string) Input

Jump to

Keyboard shortcuts

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