util/http: add type alias
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
parent
b9bbfdf159
commit
55d8a9ee20
@ -79,6 +79,8 @@ func NewTrie() *Node {
|
|||||||
return &Node{}
|
return &Node{}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type Trie = Node
|
||||||
|
|
||||||
type Node struct {
|
type Node struct {
|
||||||
// regexp matcher for regexp nodes
|
// regexp matcher for regexp nodes
|
||||||
rex *regexp.Regexp
|
rex *regexp.Regexp
|
||||||
|
@ -5,6 +5,10 @@ import (
|
|||||||
"testing"
|
"testing"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
func TestTrieBackwards(t *testing.T) {
|
||||||
|
_ = &Trie{}
|
||||||
|
}
|
||||||
|
|
||||||
func TestTrieWildcardPathPrefix(t *testing.T) {
|
func TestTrieWildcardPathPrefix(t *testing.T) {
|
||||||
var err error
|
var err error
|
||||||
type handler struct {
|
type handler struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user