code: func write(w io.Writer) chan<- message {
  	lines := make(chan message)
  	go func() {
  		for line := range lines {
  			fmt.Fprintln(w, string(line))
  		}
  	}()
  	return lines
  }
docs: // write is this application's subscriber of application messages, printing to
  // stdout.