version

package
v0.9.2 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildStr

func BuildStr() string

BuildStr returns the build information provided by ldflags at build time as a formatted string

Types

type BuildResponse

type BuildResponse struct {
	Version string `json:"version"`
	Commit  string `json:"commit"`
	BuiltAt string `json:"built_at"`
	BuiltBy string `json:"built_by"`
}

BuildResponse is a JSON response with the current version of the bot or extension

func Build

func Build() BuildResponse

Build returns the build information provided by ldflags at build time as a response struct

Jump to

Keyboard shortcuts

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