package
Version:
v1.5.8-alpha4
Opens a new window with list of versions in this module.
Published: May 14, 2024
License: GPL-3.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Node[T any] struct {
Value T `json:"value"`
Children []Node[T] `json:"children"`
}
func QueryTree[I, V any](
input I,
getRoots func(inputMsg I) ([]V, error),
getChildren func(e *V) ([]V, error),
) ([]Node[V], error)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.