From 39a9b7f887538b0eb7a2181ac8997cb84c017fcf Mon Sep 17 00:00:00 2001 From: lab Date: Thu, 9 Nov 2023 11:03:41 +0800 Subject: [PATCH] fix: NowHandler outputs format --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 522b5ef..9347f55 100644 --- a/main.go +++ b/main.go @@ -32,6 +32,6 @@ func HomeHandler(w http.ResponseWriter, r *http.Request) { func TimeHandler(w http.ResponseWriter, r *http.Request) { now := time.Now() - res := now.GoString() + res := now.Format(time.RFC3339Nano) fmt.Fprint(w, res) }