fix: render empty scalar nodes

This commit is contained in:
Thomas Rooney
2024-06-13 12:10:54 +01:00
committed by quobix
parent cbe1201cbd
commit 626bca5ee4
4 changed files with 49 additions and 0 deletions

View File

@@ -67,6 +67,15 @@ func CreateIntNode(str string) *yaml.Node {
return n
}
func CreateEmptyScalarNode() *yaml.Node {
n := &yaml.Node{
Kind: yaml.ScalarNode,
Tag: "!!null",
Value: "",
}
return n
}
func CreateFloatNode(str string) *yaml.Node {
n := &yaml.Node{
Kind: yaml.ScalarNode,