创造的开始

This commit is contained in:
eson 2020-09-28 17:22:43 +08:00
commit 480064f73d
2 changed files with 25 additions and 0 deletions

14
key_test.go Normal file
View File

@ -0,0 +1,14 @@
package main
import "testing"
func Compare(n1, n2 *Node) int {
vlen := len(n1.Keys)
for i := 0; i < vlen; i++ {
}
return 0
}
func TestKey(t *testing.T) {
}

11
main.go Normal file
View File

@ -0,0 +1,11 @@
package main
// Key 使用的Key类型, 便于函数处理的归类
type Key []byte
// Node 节点
type Node struct {
Hash uint64
Keys []*Key
Value interface{}
}