ã¯ããã« Go è¨èªã§ç°¡åãªã¦ã§ãã¢ããªãä½ãããã®ã§è»½éãªã¦ã§ããã¼ã«ããã gorilla/mux ã使ã£ããµã³ãã«ã context ã®ä½¿ãæ¹ã¯ gin ã goji ã®ããã«ã¦ã§ã¢ã®å®è£ ãåèã«ãå ±éåãããå¦çãåå¥ã®ãã³ãã©ã®ä¸ã«ã©ããããå½¢ã«ãããããã¾ãã®ãã¿ã¼ã³ã£ã½ãã®ã§ Usage ã¨ãã«æ¸ãã¦æ¬²ããã package main import ( "fmt" "net/http" "github.com/gorilla/mux" "github.com/gorilla/context" ) func main() { r := mux.NewRouter() // åç´ãªãã³ãã© r.HandleFunc("/", YourHandler) // ãã¹ã«å¤æ°ãåã込㿠r.HandleFunc("/hello/{name}", VarsHandler) // ãã¹å¤æ°ã§
{{#tags}}- {{label}}
{{/tags}}