]> Cypherpunks.ru repositories - gostls13.git/commit
net/http: extended routing patterns
authorJonathan Amsterdam <jba@google.com>
Fri, 8 Sep 2023 00:14:47 +0000 (20:14 -0400)
committerJonathan Amsterdam <jba@google.com>
Mon, 11 Sep 2023 17:11:17 +0000 (17:11 +0000)
commit09465129bd9adc2713c16656ac614df396117355
tree67795f49b9f4beb85eb395557eda12aad802fc94
parenta86ef0409b76f430912f9ebbe1c0d2e5e834fd6d
net/http: extended routing patterns

This is the first of several CLs implementing the proposal
for enhanced ServeMux routing, https://go.dev/issue/61410.

Define a type to represent extended routing patterns and a function to
parse a string into one.

Updates #61410.

Change-Id: I779689acf1f14b20d12c9264251f7dc002b68c49
Reviewed-on: https://go-review.googlesource.com/c/go/+/526815
Run-TryBot: Jonathan Amsterdam <jba@google.com>
Reviewed-by: Eli Bendersky <eliben@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/net/http/pattern.go [new file with mode: 0644]
src/net/http/pattern_test.go [new file with mode: 0644]