Documentation ¶
Overview ¶
Package common contains common utilities that are shared among other packages. See each sub-package for detail.
This code is a repurposed code from Project V, under open source license https://github.com/v2fly/v2ray-core
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNoClue is for the situation that existing information is not enough to make a decision. For example, Router may return this error when there is no suitable route. ErrNoClue = errors.New("not enough information for making a decision") )
Functions ¶
func GetGOBIN ¶
func GetGOBIN() string
GetGOBIN returns GOBIN environment variable as a string. It will NOT be empty.
func GetGOPATH ¶
func GetGOPATH() string
GetGOPATH returns GOPATH environment variable as a string. It will NOT be empty.
func GetModuleName ¶
GetModuleName returns the value of module in `go.mod` file.
func GetRuntimeEnv ¶
GetRuntimeEnv returns the value of runtime environment variable, that is set by running following command: `go env -w key=value`.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.