Skip to content

Commit

Permalink
Merge pull request #63 from unistack-org/master
Browse files Browse the repository at this point in the history
util/http: add type alias
  • Loading branch information
vtolstov authored Nov 19, 2021
2 parents 07c9304 + 55d8a9e commit 734f751
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions util/http/trie.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ func NewTrie() *Node {
return &Node{}
}

type Trie = Node

type Node struct {
// regexp matcher for regexp nodes
rex *regexp.Regexp
Expand Down
4 changes: 4 additions & 0 deletions util/http/trie_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ import (
"testing"
)

func TestTrieBackwards(t *testing.T) {
_ = &Trie{}
}

func TestTrieWildcardPathPrefix(t *testing.T) {
var err error
type handler struct {
Expand Down

0 comments on commit 734f751

Please sign in to comment.