Skip to content

Commit

Permalink
new(pkg): version
Browse files Browse the repository at this point in the history
Signed-off-by: Leonardo Di Donato <leodidonato@gmail.com>
  • Loading branch information
leodido committed Dec 11, 2020
1 parent 11efcc7 commit 899b2fe
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions pkg/version/version.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
package version

import "fmt"

var (
version string
commit string
)

// String returns the version.
func String() string {
return fmt.Sprintf("%s-%s\n", version, commit)
}

0 comments on commit 899b2fe

Please sign in to comment.