1
0
Fork 0

Remove environment dump

master
Ambrose Chua 2018-01-09 19:37:37 +08:00
parent 1e015b2fbe
commit 2a75d80382
Signed by: ambrose
GPG Key ID: B34FBE029276BA5D
1 changed files with 0 additions and 2 deletions

View File

@ -14,14 +14,12 @@ func handler(w http.ResponseWriter, r *http.Request) {
numCPU := runtime.NumCPU() numCPU := runtime.NumCPU()
version := runtime.Version() version := runtime.Version()
hostname, _ := os.Hostname() hostname, _ := os.Hostname()
environ := os.Environ()
uid := os.Getuid() uid := os.Getuid()
gid := os.Getgid() gid := os.Getgid()
fmt.Fprintf(w, "Time: %v\n", time) fmt.Fprintf(w, "Time: %v\n", time)
fmt.Fprintf(w, "CPUs: %v\n", numCPU) fmt.Fprintf(w, "CPUs: %v\n", numCPU)
fmt.Fprintf(w, "Go version: %v\n", version) fmt.Fprintf(w, "Go version: %v\n", version)
fmt.Fprintf(w, "Hostname: %v\n", hostname) fmt.Fprintf(w, "Hostname: %v\n", hostname)
fmt.Fprintf(w, "Environment: %v\n", environ)
fmt.Fprintf(w, "UID: %v GID: %v\n", uid, gid) fmt.Fprintf(w, "UID: %v GID: %v\n", uid, gid)
} }