test.go 370 B

12345678910111213141516171819
  1. package main
  2. import (
  3. "./lib/com"
  4. "fmt"
  5. )
  6. func main() {
  7. tree := map[int][]byte{}
  8. tree[0] = com.RandBytesWithHeader()
  9. tree[5] = com.RandBytesWithHeader()
  10. tree[2] = com.RandBytesWithHeader()
  11. tree[1] = com.RandBytesWithHeader()
  12. tree[3] = com.RandBytesWithHeader()
  13. tree[8] = com.RandBytesWithHeader()
  14. for i, v := range tree {
  15. fmt.Printf("%d: %s\n", i, v)
  16. }
  17. }