Slice is a framework that makes it easy to build applications out of reusable, composable modules.
- init slice configuration: debug, env, name, description, etc.
- provide default variables: Name, Debug, Env, Log, Args
- provide default components: context
- load bundles configuration from environment
- build bundles: provide bundle types
- boot bundles: invoke custom bundle functions
- invoke dispatch function
- shutdown bundles: invoke custom bundle functions
- cleanup container
Slice contains variables provided by default.
The name of application.
The debug flag. Will be loaded from environment variable DEBUG
.
The run environment. May be dev
, test
, prod
. Default: prod
. Will
be loaded from environment variable ENV
.
A slice system log function. For dev
environment logging purposes. Must
be used only in bundle scope.
An arguments of application. In common alias for os.Args
.