Added version
the build failed
Details
the build failed
Details
This commit is contained in:
parent
57eabf625c
commit
491f564115
6
main.go
6
main.go
|
@ -17,6 +17,9 @@ type UserLogin struct {
|
|||
Password string `json:"password" form:"password"`
|
||||
}
|
||||
|
||||
// Set the version
|
||||
var Version string = "1.0"
|
||||
|
||||
func main() {
|
||||
|
||||
// Init Config
|
||||
|
@ -33,6 +36,9 @@ func main() {
|
|||
os.Exit(1)
|
||||
}
|
||||
|
||||
// Version notification
|
||||
fmt.Println("Library version", Version)
|
||||
|
||||
// Start the webserver
|
||||
e := routes.NewEcho()
|
||||
routes.RegisterRoutes(e)
|
||||
|
|
Loading…
Reference in New Issue