20 lines
291 B
Go
20 lines
291 B
Go
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"
|
|
}
|
|
}
|