Improved struct alignment
This commit is contained in:
parent
2a94dc114e
commit
48545fdf01
@ -6,4 +6,4 @@ indent_size = 4
|
||||
end_of_line = lf
|
||||
charset = utf-8
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = false
|
||||
insert_final_newline = true
|
2
Tree.go
2
Tree.go
@ -16,8 +16,8 @@ const (
|
||||
|
||||
// Tree represents a radix tree.
|
||||
type Tree[T any] struct {
|
||||
root treeNode[T]
|
||||
static map[string]T
|
||||
root treeNode[T]
|
||||
canBeStatic [2048]bool
|
||||
}
|
||||
|
||||
|
12
treeNode.go
12
treeNode.go
@ -15,15 +15,15 @@ const (
|
||||
|
||||
// treeNode represents a radix tree node.
|
||||
type treeNode[T any] struct {
|
||||
prefix string
|
||||
data T
|
||||
children []*treeNode[T]
|
||||
parameter *treeNode[T]
|
||||
wildcard *treeNode[T]
|
||||
indices []uint8
|
||||
startIndex uint8
|
||||
endIndex uint8
|
||||
kind byte
|
||||
prefix string
|
||||
indices []uint8
|
||||
children []*treeNode[T]
|
||||
data T
|
||||
parameter *treeNode[T]
|
||||
wildcard *treeNode[T]
|
||||
}
|
||||
|
||||
// split splits the node at the given index and inserts
|
||||
|
Loading…
x
Reference in New Issue
Block a user