gofumpt
Jes Olson jolson@digitalocean.com
Sat, 29 Jan 2022 14:18:09 -0600
1 files changed,
10 insertions(+),
9 deletions(-)
jump to
M
main.go
→
main.go
@@ -2,14 +2,15 @@ // test
package main import ( + "fmt" "html/template" - "path/filepath" - "net/http" "log" - "time" - "strconv" + "net/http" "os" - "fmt" + "path/filepath" + "strconv" + "time" + "git.j3s.sh/existentialcrisis.sh/quote" )@@ -78,7 +79,7 @@ http.Error(w, http.StatusText(500), 500)
return } - if ! (1 <= age && age <= 100) { + if !(1 <= age && age <= 100) { http.Error(w, http.StatusText(500), 500) return }@@ -113,11 +114,11 @@ http.Error(w, http.StatusText(500), 500)
return } - if ! (1 <= years && years <= 1000) { + if !(1 <= years && years <= 1000) { http.Error(w, http.StatusText(500), 500) return } - if ! (1 <= age && age <= 100) { + if !(1 <= age && age <= 100) { http.Error(w, http.StatusText(500), 500) return }@@ -181,7 +182,7 @@ http.Error(w, http.StatusText(500), 500)
return } - if ! (1 <= age && age <= 100) { + if !(1 <= age && age <= 100) { http.Error(w, http.StatusText(500), 500) return }