ci: add linter

This commit is contained in:
2026-01-03 17:57:11 +08:00
parent a6a83f8d9f
commit a8b3a34db7
5 changed files with 65 additions and 8 deletions

View File

@@ -1,9 +1,19 @@
package hello
import (
"fmt"
"net/http"
)
func HelloHandler(w http.ResponseWriter, r *http.Request) {
w.Write([]byte("Hello, World!"))
}
func Handler(w http.ResponseWriter, _ *http.Request) {
_, _ = w.Write([]byte("Hello, World!"))
if true {
if true {
if true {
fmt.Println("Deeply nested condition")
}
}
}
}