util/http: add type alias

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
Василий Толстов 2021-11-19 03:03:53 +03:00
parent b9bbfdf159
commit 55d8a9ee20
2 changed files with 6 additions and 0 deletions

View File

@ -79,6 +79,8 @@ func NewTrie() *Node {
return &Node{}
}
type Trie = Node
type Node struct {
// regexp matcher for regexp nodes
rex *regexp.Regexp

View File

@ -5,6 +5,10 @@ import (
"testing"
)
func TestTrieBackwards(t *testing.T) {
_ = &Trie{}
}
func TestTrieWildcardPathPrefix(t *testing.T) {
var err error
type handler struct {