mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-09-11 07:19:58 +00:00
➕ ➖ Replace gopkg.in/yaml.v3
with github.com/goccy/go-yaml
This commit is contained in:
@@ -4,7 +4,7 @@ import (
|
||||
"bytes"
|
||||
"encoding/json"
|
||||
|
||||
"gopkg.in/yaml.v3"
|
||||
"github.com/goccy/go-yaml"
|
||||
)
|
||||
|
||||
func PrettyYaml(data interface{}) (result string, err error) {
|
||||
@@ -21,8 +21,7 @@ func PrettyYaml(data interface{}) (result string, err error) {
|
||||
}
|
||||
|
||||
buffer := new(bytes.Buffer)
|
||||
encoder := yaml.NewEncoder(buffer)
|
||||
encoder.SetIndent(2)
|
||||
encoder := yaml.NewEncoder(buffer, yaml.Indent(2))
|
||||
|
||||
err = encoder.Encode(unmarshalled)
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user