add name and version

This commit is contained in:
fancl 2023-10-23 15:44:44 +08:00
parent 809c45c301
commit eb4c287da0
1 changed files with 10 additions and 0 deletions

View File

@ -40,6 +40,16 @@ func Http() *http.Server {
return std.Http()
}
func Name() string {
initApplication()
return std.opts.Name
}
func Version() string {
initApplication()
return std.opts.Version
}
func Debug() bool {
initApplication()
return std.opts.EnableDebug