package ui type Orientation int const ( OrientationVertical Orientation = iota OrientationHorizontal ) func (o Orientation) String() string { switch o { case OrientationVertical: return "vertical" case OrientationHorizontal: return "horizontal" default: return "unknown" } }