mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-05-14 15:42:12 +08:00
【更新】更新pg代码生成
This commit is contained in:
12
pkg/config/app.go
Normal file
12
pkg/config/app.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package config
|
||||
|
||||
import "fmt"
|
||||
|
||||
type App struct {
|
||||
Name string `yaml:"name"`
|
||||
Version string `yaml:"version"`
|
||||
}
|
||||
|
||||
func (a *App) GetAppInfo() string {
|
||||
return fmt.Sprintf("[%s:%s]", a.Name, a.Version)
|
||||
}
|
||||
Reference in New Issue
Block a user