package thestore type Event struct { ID string `json:"service-id"` Region string `json:"region"` Status string `json:"status"` URL string `json:"url"` } func (event Event) Push(operation Event) Event { if event.ID != operation.ID { panic(operation) } if operation.Region != "" { event.Region = operation.Region } if operation.Status != "" { event.Status = operation.Status } if operation.URL != "" { event.URL = operation.URL } return event }