feat: add utility function to log caller information and clean up handler
This commit is contained in:
@@ -1,19 +1,11 @@
|
||||
package hello
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"k8s-example/cmn/utils"
|
||||
"net/http"
|
||||
)
|
||||
|
||||
func Handler(w http.ResponseWriter, _ *http.Request) {
|
||||
utils.Fnc()
|
||||
_, _ = w.Write([]byte("Hello, World!"))
|
||||
|
||||
if true {
|
||||
if true {
|
||||
if true {
|
||||
fmt.Println("Deeply nested condition")
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user