Go fmt
parent
2c34946a31
commit
c9a654e7ae
6
hello.go
6
hello.go
|
@ -4,15 +4,15 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
"runtime"
|
"runtime"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
func handler(w http.ResponseWriter, r *http.Request) {
|
func handler(w http.ResponseWriter, r *http.Request) {
|
||||||
fmt.Fprintf(w, "Hello world! Here's some info:\n\n")
|
fmt.Fprintf(w, "Hello world! Here's some info:\n\n")
|
||||||
time := time.Now()
|
time := time.Now()
|
||||||
numCPU := runtime.NumCPU()
|
numCPU := runtime.NumCPU()
|
||||||
version := runtime.Version()
|
version := runtime.Version()
|
||||||
hostname, _ := os.Hostname()
|
hostname, _ := os.Hostname()
|
||||||
environ := os.Environ()
|
environ := os.Environ()
|
||||||
uid := os.Getuid()
|
uid := os.Getuid()
|
||||||
|
|
Loading…
Reference in New Issue