code: func FormatWrite(ctx formatter.Context, secrets []swarm.Secret) error {
  	render := func(format func(subContext formatter.SubContext) error) error {
  		for _, secret := range secrets {
  			secretCtx := &secretContext{s: secret}
  			if err := format(secretCtx); err != nil {
  				return err
  			}
  		}
  		return nil
  	}
  	return ctx.Write(newSecretContext(), render)
  }
docs: // FormatWrite writes the context