Large update to support v3 rendering.

This commit is contained in:
Dave Shanley
2023-03-11 15:43:32 -05:00
parent 000eada3f4
commit 3101a7c9b7
65 changed files with 605 additions and 133 deletions

View File

@@ -38,6 +38,11 @@ func (e *Example) GoLow() *low.Example {
return e.low
}
// GoLowUntyped will return the low-level Example instance that was used to create the high-level one, with no type
func (e *Example) GoLowUntyped() any {
return e.low
}
// Render will return a YAML representation of the Example object as a byte slice.
func (e *Example) Render() ([]byte, error) {
return yaml.Marshal(e)