run_env

package
v1.0.1-0...-bd443ad Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	VERSION    string
	BUILD_TIME string
	GO_VERSION string
	GIT_COMMIT string
)
View Source
var RunEnvLocal = &RunEnv{
	AppName:   "myapp",
	AppHost:   GetHostName(),
	Version:   VERSION,
	BuildTime: BUILD_TIME,
	GoVersion: GO_VERSION,
	GitCommit: GIT_COMMIT,
}

Functions

func GetHostName

func GetHostName() string

Types

type RunEnv

type RunEnv struct {
	AppName   string
	AppHost   string
	Version   string
	BuildTime string
	GoVersion string
	GitCommit string
}

RunEnv is the app's run env

func (RunEnv) GetShortGitCommitSha

func (env RunEnv) GetShortGitCommitSha() string

Jump to

Keyboard shortcuts

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