These are chat archives for gin-gonic/gin

25th
Feb 2016
Joao Martins
@jcmartins
Feb 25 2016 19:14
hi with gorilla mux I have this router.HandleFunc("/logout", logout).Methods("POST") so how can I do this with gin?
and I can do this? func login(w http.ResponseWriter, r *http.Request) { fmt.Println("method:", r.Method) If r.Method == "GET" {xxxxxxx } }