code: func newNS1Changes(action string, endpoints []*endpoint.Endpoint) []*ns1Change {
  	changes := make([]*ns1Change, 0, len(endpoints))
  
  	for _, endpoint := range endpoints {
  		changes = append(changes, &ns1Change{
  			Action:   action,
  			Endpoint: endpoint,
  		},
  		)
  	}
  
  	return changes
  }
docs: // newNS1Changes returns a collection of Changes based on the given records and action.