Sfoglia il codice sorgente

update readme with cap. http methods

tags/v0.9.0
jimzhan 10 anni fa
parent
commit
5776664cee
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. +2
    -2
      README.md

+ 2
- 2
README.md Vedi File



func main() { func main() {
app := rex.New() app := rex.New()
app.Get("/", func(w http.ResponseWriter, r *http.Request) {
app.GET("/", func(w http.ResponseWriter, r *http.Request) {
io.WriteString(w, "Hello World") io.WriteString(w, "Hello World")
}) })
app.Run() app.Run()
env.Set("PORT", 9394) env.Set("PORT", 9394)


app := rex.New() app := rex.New()
app.Get("/", index)
app.GET("/", index)
app.Run() app.Run()
} }
``` ```

Loading…
Annulla
Salva