Skip to content

Instantly share code, notes, and snippets.

@parzibyte

parzibyte/404.go Secret

Created September 15, 2022 02:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/fb4ab0d95d0fb59ec2e2a98d793d9da1 to your computer and use it in GitHub Desktop.
Save parzibyte/fb4ab0d95d0fb59ec2e2a98d793d9da1 to your computer and use it in GitHub Desktop.
enrutador.HandleFunc("/foto_producto", func(w http.ResponseWriter, r *http.Request) {
/*
...
*/
if producto.Foto != "" {
/*
*/
return
} else {
w.WriteHeader(http.StatusNotFound)
}
}).Name("VerProductos").Methods(http.MethodGet)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment