You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
272 B
12 lines
272 B
snippet middleware
|
|
options head
|
|
func ${1}(rw http.ResponseWriter, r *http.Request, next http.HandlerFunc) {
|
|
${2}
|
|
next(r, rw)
|
|
}
|
|
|
|
snippet handler
|
|
options head
|
|
func ${1}(w http.ResponseWriter, r *http.Request) {
|
|
${2}
|
|
}
|