version

package
v0.0.0-...-794f3e4 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	Version string `json:"Version,omitempty"`
	Commit  string `json:"Commit,omitempty"`
	Date    string `json:"Date,omitempty"`
}

Info creates a formattable struct for output

func New

func New(version string, commit string, date string) *Info

New will create a pointer to a new version object

func (*Info) ToJSON

func (v *Info) ToJSON() string

ToJSON converts the Info into a JSON String

func (*Info) ToYAML

func (v *Info) ToYAML() string

ToYAML converts the Info into a JSON String

Jump to

Keyboard shortcuts

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