Documentation
¶
Index ¶
- Constants
- Variables
- func FileExist(filePath string) bool
- func GetAbsPath(filePath string) string
- func GetCurrentUserInfo() (*user.User, error)
- func GetHostname() string
- func GetNetInterfaces() (map[int]map[string]string, error)
- func GetNetInterfacesForGui() ([]string, error)
- func GetUserInfoById(userId int) (*user.User, error)
- func GetUserInfoByName(userName string) (*user.User, error)
- func GetVariable(key string) string
- func HttpServer(address string, port string, dir string)
- func HttpServerForGui(address string, port string, dir string) (*http.Server, error)
- func ProgramInfo(only bool) string
- func QrCodeImage(content string) (image.Image, error)
- func QrCodeString(content string) (string, error)
- func SetFont() error
- func SetVariable(key, value string) error
- func StartGraphicalUserInterface()
Constants ¶
View Source
const ( Name = "Skynet" Version = "v0.6.2" Path = "github.com/yhyj/skynet" )
程序信息
Variables ¶
View Source
var Platform = runtime.GOOS
Functions ¶
func GetNetInterfaces ¶ added in v0.1.3
获取网卡信息(用于CLI版)
func GetNetInterfacesForGui ¶ added in v0.5.0
获取网卡信息(用于GUI版)
func GetUserInfoById ¶ added in v0.4.1
根据ID获取用户信息
func GetUserInfoByName ¶ added in v0.4.1
根据用户名获取用户信息
func HttpServer ¶ added in v0.1.3
启动HTTP服务(用于CLI版)
func HttpServerForGui ¶ added in v0.5.0
启动HTTP服务(GUI使用)
func ProgramInfo ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.