From 2808afc8f77cfe1b7797579d4b52396533dc36e0 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Wed, 6 Nov 2024 13:57:40 -0500 Subject: [PATCH] feat: add build information support --- build/build.go | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 build/build.go diff --git a/build/build.go b/build/build.go new file mode 100644 index 0000000..92fae0b --- /dev/null +++ b/build/build.go @@ -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) +}