Merge pull request #63 from unistack-org/master

util/http: add type alias
This commit is contained in:
Василий Толстов 2021-11-19 03:04:55 +03:00 committed by GitHub
commit 734f751055
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -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

View File

@ -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 {