Added tag model build out with tests.

Working through patterns and re-applying them as I go, cleaning things up as I cook.
This commit is contained in:
Dave Shanley
2022-07-31 12:04:15 -04:00
parent 23b0357aa0
commit 2f60694047
10 changed files with 1141 additions and 838 deletions

View File

@@ -3,21 +3,21 @@ package low
import "gopkg.in/yaml.v3"
type HasNode interface {
GetNode() *yaml.Node
GetNode() *yaml.Node
}
type Buildable interface {
Build(node *yaml.Node) error
Build(node *yaml.Node) error
}
type NodeReference[T any] struct {
Value T
ValueNode *yaml.Node
KeyNode *yaml.Node
Value T
ValueNode *yaml.Node
KeyNode *yaml.Node
}
type ObjectReference struct {
Value map[string]interface{}
ValueNode *yaml.Node
KeyNode *yaml.Node
Value interface{}
ValueNode *yaml.Node
KeyNode *yaml.Node
}