Skip to content
Snippets Groups Projects
Verified Commit ec6230c9 authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

chore: reorganize structure

parent 56f174e7
Branches
Tags
No related merge requests found
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
package main
// Used when building per
// -ldflags "-X main.version=$version -X main.build=$(due --iso-8601 | tr -d "-" )"
var (
version = "dev"
build = "n/a"
mnemonic = "bob"
)
type Accessor interface {
GetVersion() string
GetBuild() string
GetMnemonic() string
}
type ReleaseStruct struct {
Version string
Build string
Mnemonic string
}
var release ReleaseStruct
func init() {
release = ReleaseStruct{
Version: version,
Build: build,
Mnemonic: mnemonic,
}
}
func GetVersion() string {
return release.Version
}
func GetBuild() string {
return release.Build
}
func GetMnemonic() string {
return release.Mnemonic
}
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment