code: func (g Generator) Methods() []Method {
  	numMethods := g.iface.NumMethods()
  	methods := make([]Method, numMethods)
  	for i := 0; i < numMethods; i++ {
  		methods[i] = Method{&g, g.iface.Method(i)}
  	}
  	return methods
  }
docs: // Methods returns information about all the methods required to satisfy the interface