Embedding in Structs

Embedded types (such as mutexes) should be at the top of the field list of astruct, and there must be an empty line separating embedded fields from regularfields.

BadGood
  1. type Client struct {
  2. version int
  3. http.Client
  4. }
  1. type Client struct {
  2. http.Client
  3.  
  4. version int
  5. }