Skip to content

Commit

Permalink
feat: add build information support
Browse files Browse the repository at this point in the history
  • Loading branch information
pcfreak30 committed Nov 6, 2024
1 parent 0c09c73 commit 2808afc
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions build/build.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package build

import (
"go.lumeweb.com/portal/build"
)

var (
Version string
GitCommit string
GitBranch string
BuildTime string
GoVersion string
Platform string
Architecture string
)

func GetInfo() build.BuildInfo {
return build.New(Version, GitCommit, GitBranch, BuildTime, GoVersion, Platform, Architecture)
}

0 comments on commit 2808afc

Please sign in to comment.