buildinfo

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package buildinfo contains build information.

Index

Examples

Constants

This section is empty.

Variables

View Source
var Version = defaultVersion

Version of gen (generated by "make" or "goreleaser").

Functions

func TplFunc

func TplFunc() func() string

TplFunc returns a template function that returns gen's version.

Example
package main

import (
	"fmt"

	"astrophena.me/gen/internal/buildinfo"
)

func main() {
	f := buildinfo.TplFunc()
	fmt.Println(f())
}
Output:

devel

Types

This section is empty.

Jump to

Keyboard shortcuts

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