~themue/juju-core/053-env-more-script-friendly

Viewing all changes in revision 1537.

  • Committer: Tarmac
  • Author(s): Roger Peppe
  • Date: 2013-07-24 16:54:37 UTC
  • mfrom: (1536.1.1 349-tools-json)
  • Revision ID: tarmac-20130724165437-wt01mn3gqkwfrel0
[r=rogpeppe] agent/tools: do not embed Binary

I want to serialise Tools as part of the API
and it doesn't read well with an embedded
field (also there's a difference between Go1.0.2
and Go1.1 with embedded fields.

We could just define a Tools.MarshalJSON
method, but I prefer to make Tools marshal
nicely as-is.

I think it actually reads better without the
embedding too.

https://codereview.appspot.com/11760045/

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: