package main import ( "fmt" "log" "net/http" "github.com/julienschmidt/httprouter" ) func main() { router := httprouter.New() router.GET("/users/:id", func(w http.ResponseWriter, r *http.Request, params httprouter.Params) { userID := params.ByName("id") fmt.Fprintf(w, "User ID: %s", userID) }) log.Fatal(http.ListenAndServe(":8080", router)) }In this example, a user ID is parsed from the URL using the "params.ByName" method. When a GET request is made to "/users/123", the response will be "User ID: 123".