Switching to YAML org supported go-yaml

This commit is contained in:
Mike Farah
2025-07-10 13:04:54 +10:00
parent 7696723d5c
commit c10bfe0602
7 changed files with 14 additions and 4 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ package yqlib
import (
"fmt"
yaml "gopkg.in/yaml.v3"
yaml "go.yaml.in/yaml/v3"
)
func MapYamlStyle(original yaml.Style) Style {
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"regexp"
"strings"
yaml "gopkg.in/yaml.v3"
yaml "go.yaml.in/yaml/v3"
)
type yamlDecoder struct {
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"strings"
"github.com/fatih/color"
"gopkg.in/yaml.v3"
"go.yaml.in/yaml/v3"
)
type yamlEncoder struct {
+7
View File
@@ -84,6 +84,13 @@ var yamlFormatScenarios = []formatScenario{
}
var yamlParseScenarios = []expressionScenario{
// {
// description: "with a unquoted question mark in the string",
// document: "foo: {bar: a?bc}",
// expected: []string{
// "D0, P[], (!!map)::a: hello # things\n",
// },
// },
{
document: `a: hello # things`,
expected: []string{