build

package
v0.0.0-...-f1e53f3 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateFromData

func GenerateFromData(data, outPath, pkg string, mustValidate bool) error

Types

type BuildInfo

type BuildInfo struct {
	VersionInfo  VerInfo
	Dependencies []DepInfo
}

func GetBuildInfoFromData

func GetBuildInfoFromData(content string) BuildInfo

func GetBuildInfoFromRuntime

func GetBuildInfoFromRuntime() BuildInfo

type DepInfo

type DepInfo struct {
	Version    string `json:"Version"`
	Path       string `json:"Path"`
	Name       string `json:"Name"`
	Main       bool   `json:"Main"`
	IsIndirect bool   `json:"Indirect"`
}

type VerInfo

type VerInfo struct {
	Version    string
	Revision   string
	LastCommit time.Time
	DirtyBuild bool
}

Jump to

Keyboard shortcuts

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