_commonUtils

package
v0.0.0-...-5746ace Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base

func Base(pathStr string) string

func GetHttpPort

func GetHttpPort() (ret int)

func GetIp

func GetIp() (ip net.IP, mac net.HardwareAddr)

func GetOs

func GetOs() string

func GetSshPort

func GetSshPort() (ret int)

func GetValidPort

func GetValidPort(start int, end int, existPortMap *sync.Map) (ret int)

func GetVncPort

func GetVncPort() (ret int)

func IntToStrArr

func IntToStrArr(intArr []int) (strArr []string)

func IsLinux

func IsLinux() bool

func IsMac

func IsMac() bool

func IsPortInUse

func IsPortInUse(port int) bool

func IsRelease

func IsRelease() bool

func IsWin

func IsWin() bool

func LinkedMapToMap

func LinkedMapToMap(mp maps.Map) map[string]string

func NewSliceValue

func NewSliceValue(vals []string, p *[]string) *sliceValue

func RemoveBlankLine

func RemoveBlankLine(str string) string

func RemoveHttpPort

func RemoveHttpPort(port int)

func RemoveSshPort

func RemoveSshPort(port int)

func RemoveVncPort

func RemoveVncPort(port int)

func UintToStrArr

func UintToStrArr(intArr []uint) (strArr []string)

func UpdateUrl

func UpdateUrl(url string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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