You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
372 B
Go
22 lines
372 B
Go
1 week ago
|
package main
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
"os"
|
||
|
"strings"
|
||
|
|
||
|
"git.runcible.io/learning/ratchet"
|
||
|
)
|
||
|
|
||
|
var (
|
||
|
version string
|
||
|
commit string
|
||
|
)
|
||
|
|
||
|
func main() {
|
||
|
// Propagate build information to root package to share globally
|
||
|
ratchet.Version = strings.TrimPrefix(version, "")
|
||
|
ratchet.Commit = commit
|
||
|
fmt.Fprintf(os.Stdout, "Version: %s\nCommit: %s\n", ratchet.Version, ratchet.Commit)
|
||
|
}
|