func Context(name string, list ...Action) ContextID {
	if internal.Running {
		setErr(errors.New("input context declaration: declarations must happen before starting the framework"))
		return ContextID(maxID)
	}
	l := len(contexts.name)
	if l >= maxID {
		setErr(errors.New("input context declaration: too many contexts"))
		return ContextID(maxID)
	}
	c := ContextID(l)
	contexts.name = append(contexts.name, name)
	contexts.actions = append(contexts.actions, list)
	return c
}
//////////////////////////////////////////////////////////////////////////////
Context declares a new input context. Its name should be unique.
package input
import (
	"errors"
	"github.com/cozely/cozely/internal"
)
type ContextID uint32
const noContext = ContextID(maxID)
var current, new = ContextID(0), ContextID(0)
var contexts struct {
	name []string
	actions [][]Action
}