Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for JSONToYAML (0.07 sec)

  1. istioctl/pkg/proxyconfig/proxyconfig.go

    	}
    
    	fmt.Fprintf(c.OutOrStdout(), "\nThe result of pod %s:\n\n", podName)
    	switch outputFormat {
    	// convert the json output to yaml
    	case yamlOutput:
    		var out []byte
    		if out, err = yaml.JSONToYAML([]byte(stats)); err != nil {
    			return err
    		}
    		_, _ = fmt.Fprint(c.OutOrStdout(), string(out))
    	case jsonOutput:
    		var prettyJSON bytes.Buffer
    		err := json.Indent(&prettyJSON, []byte(stats), "", "    ")
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Oct 24 15:53:49 UTC 2024
    - 50.6K bytes
    - Viewed (0)
Back to top