environment

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package environment contains utilities for interacting with the application's environment.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ApplicationName is the name of the application, injected at build time.
	ApplicationName string

	// ApplicationDescription is the description of the application, injected at build time.
	ApplicationDescription string

	// Version is the version of the application, injected at build time.
	Version string
)

Functions

func Compiled

func Compiled() time.Time

Compiled returns the time.Time representation of the application's build timestamp.

func NewContext

func NewContext() context.Context

NewContext returns a new context.Context implementation that will cancel when the current process receives an exit signal. Should be used for graceful shutdowns.

Types

This section is empty.

Jump to

Keyboard shortcuts

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