refactor: constructors, update docs
- NewCustomTable -> NewCustom - NewTableBy -> NewBy - NewTable -> New
This commit is contained in:
@@ -8,7 +8,7 @@ import (
|
||||
)
|
||||
|
||||
func Example_basic() {
|
||||
table := cuckoo.NewTable[int, string]()
|
||||
table := cuckoo.New[int, string]()
|
||||
|
||||
if err := table.Put(1, "Hello, World!"); err != nil {
|
||||
fmt.Println("Put error:", err)
|
||||
|
||||
Reference in New Issue
Block a user