build

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2020 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KeyboardBannerFormat

func KeyboardBannerFormat() string

For Seth

func LDFlags

func LDFlags() string

Types

type Info

type Info struct {
	Component  string    `json:"component"`
	Version    string    `json:"version"`
	CommitHash string    `json:"commit"`
	Date       string    `json:"builddate"`
	Agent      string    `json:"agent"`
	SemVer     string    `json:"semver,omitempty"`
	ParsedDate time.Time `json:"parseddate,omitempty"`
}

func GetInfo

func GetInfo(component string) Info

func ToInfoMust

func ToInfoMust(text string) Info

func (Info) Banner

func (r Info) Banner() string

Banner if you want it!

func (Info) Bannerf

func (r Info) Bannerf(f string) string

Custom banner if you want it!

func (Info) String

func (r Info) String() string

type ModInfo

type ModInfo struct {
	Module  Module
	Require []Require
}

todo more fields, Exclude, Replace, eventually someone will make this available in the community

func ToModInfoMust

func ToModInfoMust(text string) ModInfo

func (ModInfo) String

func (r ModInfo) String() string

type Module

type Module struct {
	Path string
}

func (Module) MajorVersion

func (r Module) MajorVersion() string

type Require

type Require struct {
	Path     string
	Version  string
	Indirect bool
}

Jump to

Keyboard shortcuts

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