v1.7.0
版本发布时间: 2019-01-28 03:47:41
gorilla/mux最新发布版本:v1.8.1(2023-11-05 10:14:50)
Notable changes:
- mux will only support Go 1.7 and newer: this has allowed us to remove the older
gorilla/context
code. Go 1.7 has been out since August 2016. -
*Route.Host()
matching now includes thehost:port
, as opposed to just thehost
. - Subrouters should correctly return a 405 if the route matches but the method does not (see #437 for details)
CHANGELOG
- [deps] Add go.mod for versioned Go (#376) @elithrar
- Initialize user map (#371) @kalafut
- Update LICENSE & AUTHORS files. (#386) @elithrar
- Add 1.11 to build in travis (#398) @yershalom
- Drop support for Go < 1.7: remove gorilla/context (#391) @fharding1
- Create release-drafter.yml (#399) @elithrar
- Always run on the latest stable Go version. (#402) @elithrar
- Use constant for 301 status code in regexp.go (#412) @trungnn
- Use subtests in mux_test.go (#415) @kanozec
- Add stalebot config (#424) @elithrar
- Update and rename stale to stale.yml (#425) @elithrar
- remove redundant code that remove support gorilla/context (#427) @alimy
- Replace domain.com with example.com (#434) @raeesbhatti
- fix #2, return full host:port info from getHost (#383) @santsai
- Ignore ErrNotFound while matching Subrouters (#438) @g-w
- Call WriteHeader after setting other header(s) in the example (#442) @timucingelici
- replace rr.HeaderMap by rr.Header() (#443) @moeryomenko