Help us shape the future of Go! Take the 2026 Go Developer Survey

version

package
v0.9.15 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Tag is set via ldflags by release builds.
	Tag         = defaultTag
	ProgramName = "gptscript"
)

Functions

func GitCommit

func GitCommit() (commit string, dirty bool)

Types

type Version

type Version struct {
	Tag    string `json:"tag,omitempty"`
	Commit string `json:"commit,omitempty"`
	Dirty  bool   `json:"dirty,omitempty"`
}

func Get

func Get() Version

func NewVersion

func NewVersion(tag string) Version

func (Version) String

func (v Version) String() string

Jump to

Keyboard shortcuts

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