Skip to content

Commit

Permalink
Update comment on GetBuildInformation()
Browse files Browse the repository at this point in the history
  • Loading branch information
Björn Bohman committed Jan 28, 2019
1 parent 3c46efc commit 33550b4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions printVersion.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,9 @@ func PrintVersionAndExit() {

// GetBuildInformation returns a map with build information from ci build pipe at compile time.
//
// In most cases you should not use this function but instead PrintVersionAndExit().
// This function assume that the main program implements its own variation of PrintVersionAndExit()
// This function is useful for exemple letting an http API have an endpoint with version information.
//
// In the cases print version and exit on your binary you should use PrintVersionAndExit() instead.
func GetBuildInformation() (buildversion map[string]string) {
buildversion = map[string]string{
"projectName": projectName,
Expand Down

0 comments on commit 33550b4

Please sign in to comment.