chore: fixes

Signed-off-by: George Jenkins <gvjenkins@gmail.com>
This commit is contained in:
George Jenkins
2026-02-23 16:46:35 -08:00
parent ee018608f6
commit 92b64e87ad
62 changed files with 339 additions and 344 deletions

View File

@@ -102,7 +102,7 @@ type Writer interface {
// EncodeJSON is a helper function to decorate any error message with a bit more
// context and avoid writing the same code over and over for printers.
func EncodeJSON(out io.Writer, obj interface{}) error {
func EncodeJSON(out io.Writer, obj any) error {
enc := json.NewEncoder(out)
err := enc.Encode(obj)
if err != nil {
@@ -113,7 +113,7 @@ func EncodeJSON(out io.Writer, obj interface{}) error {
// EncodeYAML is a helper function to decorate any error message with a bit more
// context and avoid writing the same code over and over for printers
func EncodeYAML(out io.Writer, obj interface{}) error {
func EncodeYAML(out io.Writer, obj any) error {
raw, err := yaml.Marshal(obj)
if err != nil {
return fmt.Errorf("unable to write YAML output: %w", err)