version

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Code generated by go generate; DO NOT EDIT. This file was generated by robots at 2023-03-12 12:10:26.971943 -0500 CDT m=+0.050391126

Index

Constants

This section is empty.

Variables

View Source
var Detail = NewVersionDetail()

Detail provides an easy global way to

Functions

This section is empty.

Types

type DetailStruct

type DetailStruct struct {
	AppName              string `json:"app_name"`
	BuildDate            string `json:"build_date"`
	CoreVersion          string `json:"core_version"`
	GitBranch            string `json:"branch"`
	GitCommit            string `json:"commit"`
	GitCommitSummary     string `json:"commit_summary"`
	GitDirty             bool   `json:"dirty"`
	GitDirtyHasModified  bool   `json:"dirty_modified"`
	GitDirtyHasStaged    bool   `json:"dirty_staged"`
	GitDirtyHasUntracked bool   `json:"dirty_untracked"`
	GitWorkingState      string `json:"working_state"`
	GitSummary           string `json:"summary"`
	UserAgentString      string `json:"user_agent"`
	Version              string `json:"version"`
}

DetailStruct provides an easy way to grab all the govvv version details together

func NewVersionDetail

func NewVersionDetail() DetailStruct

NewVersionDetail builds a new version DetailStruct

func (*DetailStruct) String

func (d *DetailStruct) String() string

String implements Stringer

func (DetailStruct) ToUserAgentString

func (s DetailStruct) ToUserAgentString() string

ToUserAgentString formats a DetailStruct as a User-Agent string

Jump to

Keyboard shortcuts

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