Commit 2ce1793a authored by Michael Yang's avatar Michael Yang
Browse files

go fmt

parent e1c5be24
...@@ -3,10 +3,10 @@ package main ...@@ -3,10 +3,10 @@ package main
import ( import (
"bytes" "bytes"
"fmt" "fmt"
"net/http"
"os"
"io" "io"
"log" "log"
"net/http"
"os"
) )
func main() { func main() {
...@@ -16,7 +16,7 @@ func main() { ...@@ -16,7 +16,7 @@ func main() {
if err != nil { if err != nil {
fmt.Print(err.Error()) fmt.Print(err.Error())
os.Exit(1) os.Exit(1)
} }
responseData, err := io.ReadAll(resp.Body) responseData, err := io.ReadAll(resp.Body)
if err != nil { if err != nil {
......
...@@ -29,7 +29,7 @@ func TestHumanTime(t *testing.T) { ...@@ -29,7 +29,7 @@ func TestHumanTime(t *testing.T) {
}) })
t.Run("soon", func(t *testing.T) { t.Run("soon", func(t *testing.T) {
v := now.Add(800*time.Millisecond) v := now.Add(800 * time.Millisecond)
assertEqual(t, HumanTime(v, ""), "Less than a second from now") assertEqual(t, HumanTime(v, ""), "Less than a second from now")
}) })
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment