env

package
v0.0.0-...-17df793 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ProjectName the const value of zero
	ProjectName = "gofks"
	// ProjectOpenSourceURL the github url of go-zero
	ProjectOpenSourceURL = "github.com/bhmy-shm/gofks"

	// OsWindows represents os windows
	OsWindows = "windows"
	// OsMac represents os mac
	OsMac = "darwin"
	// OsLinux represents os linux
	OsLinux = "linux"

	// OsJs represents os js
	OsJs = "js"
	// OsIOS represents os ios
	OsIOS = "ios"
)

Variables

This section is empty.

Functions

func CanExec

func CanExec() bool

CanExec reports whether the current system can start new processes using os.StartProcess or (more commonly) exec.Command.

func InChina

func InChina() bool

InChina returns whether the current time is in China Standard Time.

func LookPath

func LookPath(xBin string) (string, error)

LookPath searches for an executable named file in the directories named by the PATH environment variable, for the os windows, the named file will be spliced with the .exe suffix.

func LookUpGo

func LookUpGo() (string, error)

LookUpGo searches an executable go in the directories named by the GOROOT/bin or PATH environment variable.

func LookUpProtoc

func LookUpProtoc() (string, error)

LookUpProtoc searches an executable protoc in the directories named by the PATH environment variable.

func LookUpProtocGenGo

func LookUpProtocGenGo() (string, error)

LookUpProtocGenGo searches an executable protoc-gen-go in the directories named by the PATH environment variable.

func LookUpProtocGenGoGrpc

func LookUpProtocGenGoGrpc() (string, error)

LookUpProtocGenGoGrpc searches an executable protoc-gen-go-grpc in the directories named by the PATH environment variable.

Types

This section is empty.

Jump to

Keyboard shortcuts

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