Skip to content

go-asset/build

Folders and files

NameName
Last commit message
Last commit date

Latest commit

7d562e1 · Jun 17, 2022

History

3 Commits
Jun 17, 2022
Apr 4, 2022
Apr 4, 2022
Apr 4, 2022
Apr 4, 2022

Repository files navigation

Go Application Build Information

This package is heavily work in progress. Right now, you have zero options to customise the things, long term goals is to provide a much better experience with configurable parts.

Example

package main

import (
	"fmt"

	"github.com/go-asset/build"
)

const AppName = "MyFancyApp"

func main() {
	version, _ := build.ReadVersion(AppName)
	fmt.Println(version)
}
❯ go run  -ldflags="-buildid=v0.0.1" .
MyFancyApp v0.0.1 *dirty* (2022-04-04T11:05:34Z)