Working through the model builder

Shaping out the design as I go, what makes sence, what feels right, what do we need, how do we want to use it and how to we want to search it etc.
This commit is contained in:
Dave Shanley
2022-07-30 15:27:21 -04:00
parent ecc7b20b0a
commit 7535cf568c
13 changed files with 290 additions and 124 deletions

View File

@@ -7,15 +7,17 @@ type HasNode interface {
}
type Buildable interface {
Build(node *yaml.Node)
Build(node *yaml.Node) error
}
type NodeReference[T comparable] struct {
Value T
Node *yaml.Node
type NodeReference[T any] struct {
Value T
ValueNode *yaml.Node
KeyNode *yaml.Node
}
type ObjectReference struct {
Value map[string]interface{}
Node *yaml.Node
Value map[string]interface{}
ValueNode *yaml.Node
KeyNode *yaml.Node
}