Restructure project similar to hello and graph

This commit is contained in:
Thomas Boerger
2019-12-06 15:03:43 +01:00
parent 5c15745a3a
commit acd6d6e7f5
46 changed files with 1906 additions and 751 deletions
+10
View File
@@ -1,5 +1,9 @@
package version
import (
"time"
)
var (
// String gets defined by the build system.
String = "0.0.0"
@@ -7,3 +11,9 @@ var (
// Date indicates the build date.
Date = "00000000"
)
// Compiled returns the compile time of this service.
func Compiled() time.Time {
t, _ := time.Parse("20060102", Date)
return t
}