// Package domain provides the logger domain main function. // This is spawned as an OS process by main. It receives log entries // on a channel and writes them sequentially to stdout. package domain import "os" // Run is the logger domain entry point. It reads []byte log entries // from ch and writes them to stdout until the channel is closed. func Run(ch <-chan []byte) { for entry := range ch { os.Stdout.Write(entry) } }