Completed adding v3 models (I think)

Going to start logic for building things out. attempting generic builder pattern first.
This commit is contained in:
Dave Shanley
2022-07-29 06:52:07 -04:00
parent a5f4c7f607
commit a906d46227
16 changed files with 246 additions and 14 deletions

View File

@@ -6,12 +6,12 @@ type HasNode interface {
GetNode() *yaml.Node
}
type NodeReference[T comparable] interface {
GetValue() T
GetNode() *yaml.Node
type NodeReference[T comparable] struct {
Value T
Node *yaml.Node
}
type ObjectReference interface {
GetValue() interface{}
GetNode() *yaml.Node
type ObjectReference struct {
Value interface{}
Node *yaml.Node
}