Skip to content
Snippets Groups Projects
Commit 0193c99078d8 authored by Alexander Trost's avatar Alexander Trost
Browse files

Changed name to hostname output

parent 60de0f2e4103
No related branches found
No related tags found
No related merge requests found
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
hostname, _ := os.Hostname() hostname, _ := os.Hostname()
w.Write([]byte("Hello World!\n")) w.Write([]byte("Hello World!\n"))
w.Write([]byte("Name: " + hostname + "\n")) w.Write([]byte("Hostname: " + hostname + "\n"))
w.Write([]byte("Version Info:\n")) w.Write([]byte("Version Info:\n"))
w.Write([]byte(version.Print("app") + "\n")) w.Write([]byte(version.Print("app") + "\n"))
}) })
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment