base

package
v0.0.0-...-25b5904 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exec

func Exec(cmd string, options []string) error

*

执行命令行

func GetOSType

func GetOSType() string

* 获取系统类型名 eg : windows,darwin(苹果系统), freebsd, linux ,unix

func IsDarWinOs

func IsDarWinOs() bool

* 是否苹果系统

func IsExistsStrMap

func IsExistsStrMap(key string, obj *map[string]interface{}) bool

map 对应的属性键是否存在

func IsLinuxOs

func IsLinuxOs() bool

* 是否 linux 系统

func IsUnixOs

func IsUnixOs() bool

* 是否 unix

func IsWhichOs

func IsWhichOs(osType string) bool

* 是否对应类型系统

func IsWinOs

func IsWinOs() bool

* 判断是否Windows 系统

func MapIsExists

func MapIsExists(key interface{}, obj *map[interface{}]interface{}) bool

是否存在

Types

This section is empty.

Jump to

Keyboard shortcuts

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