common

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultString

func DefaultString(input string, defaultValue string) string

DefaultString 返回默认字符串

func LoadPrivateKey

func LoadPrivateKey(file string) (crypto.PrivateKey, *errors.Error)

LoadPrivateKey 加载私钥

func NewBash

func NewBash(command string) *exec.Cmd

NewBash 创建新的 Bash Shell

func RunCommand

func RunCommand(command string) (string, *errors.Error)

RunCommand 执行命令

func RunCommandBindTerminal

func RunCommandBindTerminal(command string)

RunCommandBindTerminal 在终端中执行命令

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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