severity int32 food *messaging.Food swallowChan chan *messaging.Food wg sync.WaitGroup ) gi.BeforeEach(func() { timestamp = int64(time.Now().Unix()) hostname = "hostname" tag = "tag" content = "content" priority = 1 facility = 7 severity = 2 fType := messaging.RFC3164 food = new(messaging.Food) food.Type = &fType msg := new(messaging.Rfc3164) msg.Timestamp = ×tamp msg.Hostname = &hostname msg.Tag = &tag msg.Content = &content msg.Priority = &priority msg.Severity = &severity food.Rfc3164 = append(food.Rfc3164, msg) swallowChan = make(chan *messaging.Food, 1) //blocking }) gi.It("Test RFC3164", func() { // log.Info(food)