1
0
mirror of https://github.com/schollz/cowyo.git synced 2023-08-10 21:13:00 +03:00

Print server version on startup

This commit is contained in:
Zack Scholl 2017-03-23 20:13:58 -06:00
parent 25d99852c0
commit 4717d5d066
2 changed files with 66 additions and 66 deletions

File diff suppressed because one or more lines are too long

View File

@ -23,7 +23,7 @@ func main() {
}
pathToData = c.GlobalString("data")
os.MkdirAll(pathToData, 0755)
fmt.Printf("\nRunning CowYo at http://%s:%s\n\n", GetLocalIP(), c.GlobalString("port"))
fmt.Printf("\nRunning cowyo server (version %s) at http://%s:%s\n\n", version, GetLocalIP(), c.GlobalString("port"))
serve(c.GlobalString("port"))
return nil
}