system

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareOsEnv

func CompareOsEnv(key, comparedEnv string) bool

CompareOsEnv gets env and Compare

@Description:
@param key
@param comparedEnv
@return bool

func ExecCommand

func ExecCommand(command string) (stdout, stderr string, err error)

ExecCommand execute command shell /bin/bash -c

@Description:
@param command
@return stdout
@return stderr
@return err

func GetOsEnv

func GetOsEnv(key string) string

GetOsEnv

@param key
@return string

func IsLinux

func IsLinux() bool

IsLinux

@Description:
@return bool

func IsMac

func IsMac() bool

IsMac

@return bool

func IsWindows

func IsWindows() bool

IsWindows

@return bool

func RemoveOsEnv

func RemoveOsEnv(key string) error

RemoveOsEnv

@param key
@return error

func SetOsEnv

func SetOsEnv(key, value string) error

SetOsEnv

@param key
@param value
@return error

Types

This section is empty.

Jump to

Keyboard shortcuts

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