Skip to content

ee-go:v1.0.0

介绍

os模块

使用方法

go
import (
	"github.com/wallace5303/ee-go/eos"
)

API列表

仅做简单介绍。按照go标准,常量/函数/方法等说明信息,都在源码中。

func IsWindows() bool

是否为windows平台

func IsLinux() bool

是否为Linux平台

func IsMacOS() bool

是否为macOS平台

func IsDarwin() bool

是否为macOS平台

func OSPlatform() (plat string)

获取当前平台字符串

func GetUserHomeDir() (string, error)

获取用户目录路径