package types type ShutdownFunc func() type RunFunc func() error type StageType int const ( StageLanding StageType = iota StageLobby StageGaming ) type Program struct { Run RunFunc Stage StageType } type UsernameType = string