sys

package
v0.0.0-...-1e877d2 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecCommand

func ExecCommand(name string, arg ...string) string

ExecCommand 执行系统命令

func ExecCommandGrep

func ExecCommandGrep(command *exec.Cmd, grep *exec.Cmd) string

ExecCommandGrep 执行系统pipe命令 ps := exec.Command("ps", "-ef") grep := exec.Command("grep", "-i", "php-fpm")

func ExternalIP

func ExternalIP() (string, error)

ExternalIP 获得请求IP

func GetInternalIP

func GetInternalIP() (string, error)

GetInternalIP 获得请求IP

func HostName

func HostName() (string, error)

HostName 获得本机名

func LocalIP

func LocalIP() (string, error)

LocalIP 获得本机IP

Types

This section is empty.

Jump to

Keyboard shortcuts

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