func printAccount(w io.Writer, a *acme.Account, kp string) {
	tw := tabwriter.NewWriter(w, 0, 8, 0, '\t', 0)
	fmt.Fprintln(tw, "URI:\t", a.URI)
	fmt.Fprintln(tw, "Key:\t", kp)
	fmt.Fprintln(tw, "Contact:\t", strings.Join(a.Contact, ", "))
	fmt.Fprintln(tw, "Terms:\t", a.CurrentTerms)
	agreed := a.AgreedTerms
	if a.AgreedTerms == "" {
		agreed = "no"
	} else if a.AgreedTerms == a.CurrentTerms {
		agreed = "yes"
	}
	fmt.Fprintln(tw, "Accepted:\t", agreed)
	// TODO: print authorization and certificates
	tw.Flush()
}
func printAccount(w io.Writer, a *acme.Account, kp string) {
	tw := tabwriter.NewWriter(w, 0, 8, 0, '\t', 0)
	fmt.Fprintln(tw, "URI:\t", a.URI)
	fmt.Fprintln(tw, "Key:\t", kp)
	fmt.Fprintln(tw, "Contact:\t", strings.Join(a.Contact, ", "))
	fmt.Fprintln(tw, "Terms:\t", a.CurrentTerms)
	agreed := a.AgreedTerms
	if a.AgreedTerms == "" {
		agreed = "no"
	} else if a.AgreedTerms == a.CurrentTerms {
		agreed = "yes"
	}
	fmt.Fprintln(tw, "Accepted:\t", agreed)
	
	tw.Flush()
}
func printAccount ( w io . Writer , a * acme . Account , kp string ) { tw := tabwriter . NewWriter ( w , 0 , 8 , 0 , '\t' , 0 ) fmt . Fprintln ( tw , " \t " , a . URI ) fmt . Fprintln ( tw , " \t " , kp ) fmt . Fprintln ( tw , " \t " , strings . Join ( a . Contact , " " ) ) fmt . Fprintln ( tw , " \t " , a . CurrentTerms ) agreed := a . AgreedTerms if a . AgreedTerms == " " { agreed = " " } else if a . AgreedTerms == a . CurrentTerms { agreed = " " } fmt . Fprintln ( tw , " \t " , agreed ) // TODO: print authorization and certificates tw . Flush ( ) }
// printAccount outputs account into into w using tabwriter.
printAccount outputs account into into w using tabwriter .