Browse Source

fix

pull/598/head
Bergutov Ruslan 5 years ago
parent
commit
54dd42ca72
  1. 2
      example_router_test.go

2
example_router_test.go

@ -7,7 +7,7 @@ import (
) )
// This example demonstrates alias pattern registration on router // This example demonstrates alias pattern registration on router
func ExampleRegisterPattern() { func ExampleRouter_RegisterPattern() {
r := mux.NewRouter().RegisterPattern("uuid", "[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[8|9|aA|bB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}") r := mux.NewRouter().RegisterPattern("uuid", "[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-4[a-fA-F0-9]{3}-[8|9|aA|bB][a-fA-F0-9]{3}-[a-fA-F0-9]{12}")
route := r.Path("/category/{id:uuid}") route := r.Path("/category/{id:uuid}")

Loading…
Cancel
Save