app

package module
v0.0.0-...-88bcc30 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2023 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildDate

func BuildDate() string

func BuildUser

func BuildUser() string

func LogAttrs

func LogAttrs() []slog.Attr

func Name

func Name() string

func StartDate

func StartDate() time.Time

func VCSRef

func VCSRef() string

func Version

func Version() string

Types

type Info

type Info struct {
	Name      string    `json:"name"`
	Version   string    `json:"version"`
	VCSRef    string    `json:"vcs_ref"`
	BuildDate string    `json:"build_date"`
	BuildUser string    `json:"build_user"`
	StartDate time.Time `json:"start_date"`
	GoVersion string    `json:"go_version"`
	GoOS      string    `json:"go_os"`
	GoArch    string    `json:"go_arch"`
}

func GetInfo

func GetInfo() Info

GetInfo returns build and runtime information.

Jump to

Keyboard shortcuts

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