modulepackage
0.0.0-20231103185600-ee84e9faba22
Repository: https://github.com/rande/goapp.git
Documentation: pkg.go.dev
# README
Go App
- Try to normalize how an application should start without providing any convention about how each steps should be used.
- Provide an application container to store services
Features
- Application container
- Load configuration file (as string) and replace {{ env 'ENV' }} with env variables
- Application lifecycle management: from load to exit
# Functions
helper function to load a configuration file as template, and replace {{ env 'ENV_VARIABLE' }} with the variable from the environnement.
helper function to load a configuration string as template, and replace {{ env 'ENV_VARIABLE' }} with the variable from the environnement.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Constants
Read configuration.
process is stopped.
process generated an error.
process required to kill the application.
process required to stop the application.
Exit the program.
Initialize application: register flags, no logic should be done here.
Defined main services from configuration.
Register components that does not required configuration settings.
Run the main program loop.
Exit the program.
# Structs
The structure contains all services build by the AppFunc function, the service is initialized when get Get method is called.
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author
Represents the function used to change states or start a process.
No description provided by the author