Commit 9d06f9e6 authored by obscuren's avatar obscuren

Updated readme#trie

parent c0fcefa3
...@@ -53,6 +53,8 @@ trie.Put("doge", "coin") ...@@ -53,6 +53,8 @@ trie.Put("doge", "coin")
// Look up the key "do" in the trie // Look up the key "do" in the trie
out := trie.Get("do") out := trie.Get("do")
fmt.Println(out) // => verb fmt.Println(out) // => verb
trie.Delete("puppy")
``` ```
The patricia trie, in combination with RLP, provides a robust, The patricia trie, in combination with RLP, provides a robust,
...@@ -82,7 +84,7 @@ type (e.g. `Slice()` returns []interface{}, `Uint()` return 0, etc). ...@@ -82,7 +84,7 @@ type (e.g. `Slice()` returns []interface{}, `Uint()` return 0, etc).
`NewEmptyValue()` returns a new \*Value with it's initial value set to a `NewEmptyValue()` returns a new \*Value with it's initial value set to a
`[]interface{}` `[]interface{}`
`AppendLint()` appends a list to the current value. `AppendList()` appends a list to the current value.
`Append(v)` appends the value (v) to the current value/list. `Append(v)` appends the value (v) to the current value/list.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment