utils

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyConn added in v1.1.0

func CopyConn(src net.Conn, dstAddr string) error

func GetLocalIP

func GetLocalIP() string

func GetLocalIPs

func GetLocalIPs() (ips []string)

func GetSSHConnectIP

func GetSSHConnectIP() string

func JsonFormatPrint

func JsonFormatPrint(content []byte) error

func JsonPrint

func JsonPrint(contents []string) error

func SetWindowTitle

func SetWindowTitle(title string) (err error)

func Upgrade added in v1.0.2

func Upgrade(dummy bool, currentVersion string) (err error)

Types

type PasswordGenerator

type PasswordGenerator struct {
	Passwd              bool
	DisabledDigital     bool
	DisabledLowercase   bool
	DisabledUppercase   bool
	DisabledPunctuation bool
	PasswordLength      int
}

func (*PasswordGenerator) GenPassword

func (pg *PasswordGenerator) GenPassword() error

Jump to

Keyboard shortcuts

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