From 272369a205b9ca5326003d4585f3a81fe6fc3f52 Mon Sep 17 00:00:00 2001 From: michaelgrigoryan25 <56165400+michaelgrigoryan25@users.noreply.github.com> Date: Fri, 10 Jun 2022 09:53:14 +0000 Subject: [PATCH 1/3] regexp: use iota instead of hardcoded values --- regexp.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/regexp.go b/regexp.go index 0144842b..37c11edc 100644 --- a/regexp.go +++ b/regexp.go @@ -22,10 +22,10 @@ type routeRegexpOptions struct { type regexpType int const ( - regexpTypePath regexpType = 0 - regexpTypeHost regexpType = 1 - regexpTypePrefix regexpType = 2 - regexpTypeQuery regexpType = 3 + regexpTypePath regexpType = iota + regexpTypeHost + regexpTypePrefix + regexpTypeQuery ) // newRouteRegexp parses a route template and returns a routeRegexp, From a25a148c727eed048f468dd888152cac0cc2f2ff Mon Sep 17 00:00:00 2001 From: Michael Grigoryan <56165400+michaelgrigoryan25@users.noreply.github.com> Date: Mon, 20 Jun 2022 09:59:15 +0400 Subject: [PATCH 2/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index c7e6872b..41908376 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # gorilla/mux -[![GoDoc](https://godoc.org/github.com/gorilla/mux?status.svg)](https://godoc.org/github.com/gorilla/mux) [![CircleCI](https://circleci.com/gh/gorilla/mux.svg?style=svg)](https://circleci.com/gh/gorilla/mux) +[![Documentation](https://godoc.org/github.com/gorilla/mux?status.svg)](https://godoc.org/github.com/gorilla/mux) [![Sourcegraph](https://sourcegraph.com/github.com/gorilla/mux/-/badge.svg)](https://sourcegraph.com/github.com/gorilla/mux?badge) ![Gorilla Logo](https://cloud-cdn.questionable.services/gorilla-icon-64.png) From 7c093b07ff9201c3d2493ddbe5315584751bf7d9 Mon Sep 17 00:00:00 2001 From: Michael Grigoryan <56165400+michaelgrigoryan25@users.noreply.github.com> Date: Wed, 22 Jun 2022 06:12:23 +0000 Subject: [PATCH 3/3] Revert "Update README.md" This reverts commit a25a148c727eed048f468dd888152cac0cc2f2ff. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 41908376..c7e6872b 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # gorilla/mux +[![GoDoc](https://godoc.org/github.com/gorilla/mux?status.svg)](https://godoc.org/github.com/gorilla/mux) [![CircleCI](https://circleci.com/gh/gorilla/mux.svg?style=svg)](https://circleci.com/gh/gorilla/mux) -[![Documentation](https://godoc.org/github.com/gorilla/mux?status.svg)](https://godoc.org/github.com/gorilla/mux) [![Sourcegraph](https://sourcegraph.com/github.com/gorilla/mux/-/badge.svg)](https://sourcegraph.com/github.com/gorilla/mux?badge) ![Gorilla Logo](https://cloud-cdn.questionable.services/gorilla-icon-64.png)