Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AppName string
AppName is the name of app.
Default: filepath.Base(os.Args[0]), but not contain the suffix ".exe"
View Source
var PWD string
PWD is the current working directory.
View Source
var Version string
Version is the version of app.
Default: github.com/xgfone/gover.Text()
Functions ¶
func Init ¶ added in v0.7.0
Init is used to initialize the application.
- Register the log options.
- Initialize configuration.
- Initialize the logging.
- Call the registered initialization functions.
- Start a goroutine to monitor the exit signals.
func OnExitPost ¶ added in v0.73.0
func OnExitPost(f func())
Types ¶
This section is empty.
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package config is used to configure the application.
|
Package config is used to configure the application. |
|
Package db provides some assistant functions about the database.
|
Package db provides some assistant functions about the database. |
|
Package log is used to initialize the logging.
|
Package log is used to initialize the logging. |
|
file
Package provides a rotating file based on the file size.
|
Package provides a rotating file based on the file size. |
Click to show internal directories.
Click to hide internal directories.