Documentation
¶
Index ¶
- func Command(name string, arg ...string) (string, error)
- func CommandContext(ctx context.Context, name string, arg ...string) (string, error)
- func CurrentDir() string
- func DNSMsgTypeA(dnsServer, domain string) (*dns.Msg, error)
- func DNSMsgTypeAAAA(dnsServer, domain string) (*dns.Msg, error)
- func DirFileList(dir string) ([]string, error)
- func FileExists(path string) (bool, error)
- func IsIP(ip string) bool
- func IsIPV6(ip string) bool
- func IsIPV6Addr(addr string) bool
- func IsLANIP(ip string) bool
- func IsLoopbackIP(ip string) bool
- func LookupIPV4From(dnsServer, domain string) ([]net.IP, error)
- func LookupIPV6From(dnsServer, domain string) ([]net.IP, error)
- func MapKeys[M ~map[K]V, K comparable, V any](m M) []K
- func RandomBetween(min, max int64) int64
- func ReadFileLines(file string) ([]string, error)
- func ReadFileLinesMap(file string) (map[string]struct{}, error)
- func SetSysDNS(v []string) error
- func SysDNS() ([]string, error)
- func SysGatewayAndDevice() (gw string, dev string, err error)
- func SysGatewayAndDeviceV6() (gw string, dev string, err error)
- func SysPowershellMajorVersion() int
- func SysSupport(bin string) bool
- func SysSupportGnomeTerminal() bool
- func SysSupportKonsole() bool
- func SysSupportLxterminal() bool
- func SysSupportMateTerminal() bool
- func SysSupportPowershell() bool
- func SysSupportTerminator() bool
- func SysSupportXTerminalEmulator() bool
- func SysSupportXfce4Terminal() bool
- func WriteToTemp(filename string, content []byte) (namePath string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommandContext ¶
func CurrentDir ¶
func CurrentDir() string
func DNSMsgTypeAAAA ¶ added in v2.4.0
func DirFileList ¶
func FileExists ¶
func IsIPV6Addr ¶ added in v2.6.4
func IsLoopbackIP ¶
func LookupIPV4From ¶ added in v2.4.0
LookupIPV4From lookup ipv4s for domain from dnsServer
func LookupIPV6From ¶ added in v2.4.0
LookupIPV6From lookup ipv6s for domain from dnsServer
func MapKeys ¶ added in v2.4.2
func MapKeys[M ~map[K]V, K comparable, V any](m M) []K
func RandomBetween ¶
func ReadFileLines ¶
func ReadFileLinesMap ¶
func SysGatewayAndDevice ¶
func SysGatewayAndDeviceV6 ¶ added in v2.5.0
func SysPowershellMajorVersion ¶
func SysPowershellMajorVersion() int
func SysSupport ¶ added in v2.4.3
func SysSupportGnomeTerminal ¶ added in v2.4.3
func SysSupportGnomeTerminal() bool
func SysSupportKonsole ¶ added in v2.4.3
func SysSupportKonsole() bool
func SysSupportLxterminal ¶ added in v2.4.3
func SysSupportLxterminal() bool
func SysSupportMateTerminal ¶ added in v2.4.3
func SysSupportMateTerminal() bool
func SysSupportPowershell ¶
func SysSupportPowershell() bool
func SysSupportTerminator ¶ added in v2.4.3
func SysSupportTerminator() bool
func SysSupportXTerminalEmulator ¶ added in v2.4.3
func SysSupportXTerminalEmulator() bool
func SysSupportXfce4Terminal ¶ added in v2.4.3
func SysSupportXfce4Terminal() bool
Types ¶
This section is empty.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.