Replies: 4 comments 1 reply
-
Hi! There's a |
Beta Was this translation helpful? Give feedback.
-
No list branch found |
Beta Was this translation helpful? Give feedback.
-
/*
──────────────────────────────────────────────────────────────────────────────────────────────────
│Method │Description
──────────────────────────────────────────────────────────────────────────────────────────────────
│doc_container │
├───init_container │
│ ├───New[T any](typeKey string, data T) (root *Node[T]) │
│ ├───NewContainerNode[T any](typeKey string, data T) *Node[T] │
│ ├───NewNode[T any](typeKey string, data T) *Node[T] │
│ ├───Root() *Node[T] │
│ └───IsRoot() bool │
├───walker_container │
│ ├───Walk(callback func(node *Node[T])) │
│ └───WalkContainer(callback func(node *Node[T])) │
├───ctx_container │
│ ├───Depth() int │
│ ├───UUID() uuid.UUID │
│ ├───Sort(cmp func(a T, b T) bool) │
│ ├───Clone(newParent *Node[T], preserveID bool) *Node[T] │
│ ├───CopyFrom(from *Node[T]) │
│ ├───ApplyTo(to *Node[T]) │
│ ├───Parent() *Node[T] │
│ ├───SetParent(parent *Node[T]) │
│ ├───Container() bool │
│ ├───HasChildren() bool │
│ ├───SetChildren(children []*Node[T]) │
│ ├───clearUnusedFields() │
│ ├───GetType() string │
│ ├───SetType(t string) │
│ ├───kind(base string) string │
│ ├───Open() bool │
│ ├───SetOpen(open bool) │
│ ├───OpenAll() bool │
│ ├───CloseAll() bool │
│ ├───LenChildren() int │
│ ├───LastChild() │
│ ├───IsLastChild() bool │
│ └───ResetChildren() │
├───adder_container │
│ ├───AddContainer(container *Node[T]) │
│ ├───AddContainerByData(typeKey string, data T) │
│ ├───AddChildByData(typeKey string, data T) │
│ ├───AddChild(child *Node[T]) │
│ ├───InsertChildItem(parentID uuid.UUID, data T) *Node[T] │
│ ├───CreateItem(parent *Node[T], data T) │
│ ├───InsertChildByID(id uuid.UUID) *Node[T] │
│ ├───InsertChildByName(id uuid.UUID) *Node[T] │
│ ├───InsertChildByIndex(id uuid.UUID) *Node[T] │
│ ├───InsertChildByType(id uuid.UUID) *Node[T] │
│ └───InsertChildByPath(id uuid.UUID) *Node[T] │
├───remover_container │
│ ├───RemoveByID(id uuid.UUID) │
│ ├───RemoveSelf(id uuid.UUID) │
│ ├───RemoveChildByID() │
│ ├───RemoveChildByName() │
│ ├───RemoveChildByIndex() │
│ └───RemoveChildByPath() │
├───updater_container │
│ ├───UpdateChildByID(id uuid.UUID, data T) │
│ ├───UpdateChildByName(id uuid.UUID, data T) │
│ ├───UpdateChildByIndex(id uuid.UUID, data T) │
│ ├───UpdateChildByPath(id uuid.UUID, data T) │
│ ├───UpdateChildByType(id uuid.UUID, data T) │
│ ├───SwapChild() │
│ ├───MoveChildTo() │
│ └───SwapChild() │
├───finder_container │
│ ├───FindChildByID(id uuid.UUID) *Node[T] │
│ ├───FindChildByName(id uuid.UUID) *Node[T] │
│ ├───FindChildByIndex(id uuid.UUID) *Node[T] │
│ ├───FindChildByPath(id uuid.UUID) *Node[T] │
│ └───FindChildByType(id uuid.UUID) *Node[T] │
└───tableCtx_container │
│ ├───SetFormatRowCallback(formatRowCallback func(*Node[T]) string) │
│ ├───String() string │
│ ├───format(node *Node[T], s *stream.Stream) │
│ ├───Enabled() bool │
│ ├───SetSelectedFunc() │
│ ├───SetIndent() │
│ ├───GetPath() │
│ ├───SetAlign() │
│ └───MouseHandler() │
*/
/*
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
│Number │Name │Type │Kind │Tag │Value │ValueAssert
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
│1 │Group1_container │ │struct │ │ │<nil>
├───1 │Binary1 │ │string │ │ │game/system/session/info
├───2 │Message2_container │ │struct │ │ │<nil>
│ ├───2 │Packed2_container │ │slice │ │ │<nil>
│ │ ├───2 │[0]_container │ │invalid │ │ │<nil>
│ │ │ ├───1 │Varint1 │ │uint64 │ │ │0
│ │ │ ├───2 │Binary2 │ │string │ │ │d3048a459417e6c0b7d39c971b99a58029f2720f7b2a70c992c826ce48184069
│ │ │ ├───3 │Binary3 │ │string │ │ │6593D03B-92BC-4BC6-BF54-D16BB0271AF9
│ │ │ └───4 │Binary4 │ │string │ │ │Apple-iPhone10,3
│ │ └───2 │[1]_container │ │invalid │ │ │<nil>
│ │ │ ├───1 │Varint1 │ │uint64 │ │ │1
│ │ │ ├───2 │Binary2 │ │string │ │ │""
│ │ │ ├───3 │Binary3 │ │string │ │ │EAAIe5YPC68wBAPGE5l7JEtIE9BfPQmbcpQ92b0c9fD29vKn5ZCwHkutEjpX2PEcvyBLDqo15gNi1x0VN7U6d26QDaABEDaVzu3vuZBYKtvHH130O9Kna4742s6B8dtr1aKJUw7HuuyNWObpWYZCqBDGvypB7Js93oBISkwWrjbuYZAooY5vHLHFPyuIcLAcV8ZAX9sRFn3un18KZA0MEuDtgekU4ZBTJ1doEQmQ4DCLXwZDZD
│ │ │ └───4 │Binary4 │ │string │ │ │_
│ └───3 │Binary3 │ │string │ │ │6593D03B-92BC-4BC6-BF54-D16BB0271AF9
├───3 │Varint3 │ │uint64 │ │ │0
├───4 │Binary4 │ │string │ │ │""
└───5 │Varint5 │ │uint64 │ │ │0
*/ |
Beta Was this translation helpful? Give feedback.
-
The tree table I'm talking about looks like this, with a left-tree-right-table layout, but the tree and table are combined |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
All reactions