- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for MarshalIndent (0.22 sec)
-
istioctl/pkg/tag/tag.go
for _, t := range tags { fmt.Fprintf(w, "%s\t%s\t%s\n", t.Tag, t.Revision, strings.Join(t.Namespaces, ",")) } return w.Flush() } func PrintJSON(w io.Writer, res any) error { out, err := json.MarshalIndent(res, "", "\t") if err != nil { return fmt.Errorf("error while marshaling to JSON: %v", err) } fmt.Fprintln(w, string(out)) return nil }
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Tue Apr 02 08:32:06 GMT 2024 - 16.3K bytes - Viewed (0)