Skip to content

Commit

Permalink
Added RadixTree
Browse files Browse the repository at this point in the history
  • Loading branch information
undrehalim95 committed Dec 14, 2014
1 parent ab6fdcf commit 0508b53
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions RadixTree.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ type Interface interface{}

type Node struct {
Key []byte
Value int
Value Interface
Link *Node
Next *Node
}
Expand Down Expand Up @@ -170,5 +170,7 @@ func main() {
fmt.Print("Searching for 'TestSearch': ")
fmt.Println(radix.Search("TestSearch"))
fmt.Print("Searching for 'AkuStres': ")
fmt.Println(radix.Search("AkuStres': ") //Testcase for non-existing Key
fmt.Println(radix.Search("AkuStres': ")) //Testcase for non-existing Key
fmt.Print("Searching for '123': ")
fmt.Println(radix.Search("123': "))
}

0 comments on commit 0508b53

Please sign in to comment.