Skip to content

Instantly share code, notes, and snippets.

Created May 30, 2019
What would you like to do?
enrutador.HandleFunc("/ventas/{tipo}/{anio}", func(respuesta http.ResponseWriter, peticion *http.Request) {
variablesDePeticion := mux.Vars(peticion)
tipo := variablesDePeticion["tipo"]
anio := variablesDePeticion["anio"]
respuesta.Write([]byte("El tipo de venta es " + tipo + " y el año es " + anio))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment