code: func convertTermboxEvent(e tb.Event) Event {
  	if e.Type == tb.EventError {
  		panic(e.Err)
  	}
  	switch e.Type {
  	case tb.EventKey:
  		return convertTermboxKeyboardEvent(e)
  	case tb.EventMouse:
  		return convertTermboxMouseEvent(e)
  	case tb.EventResize:
  		return Event{
  			Type: ResizeEvent,
  			ID:   "<Resize>",
  			Payload: Resize{
  				Width:  e.Width,
  				Height: e.Height,
  			},
  		}
  	}
  	return Event{}
  }
docs: // convertTermboxEvent turns a termbox event into a termui event.