From 54dd42ca722b60367d5b4285085e48738324f3f1 Mon Sep 17 00:00:00 2001 From: Bergutov Ruslan Date: Mon, 12 Oct 2020 19:24:28 +0500 Subject: [PATCH] fix --- example_router_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example_router_test.go b/example_router_test.go index a66ae5e..c019430 100644 --- a/example_router_test.go +++ b/example_router_test.go @@ -7,7 +7,7 @@ import ( ) // 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}") route := r.Path("/category/{id:uuid}")