Add main server with gin for ZenGO

This commit is contained in:
2021-09-27 17:21:55 +07:00
parent 4e4da5988f
commit 697ca51854
5 changed files with 150 additions and 0 deletions

19
config/config.go Normal file
View File

@@ -0,0 +1,19 @@
package config
type Config struct {
App *AppConfig
}
type AppConfig struct {
Addr string
Port int
}
func GetConfig() *Config {
return &Config{
App: &AppConfig{
Addr: "0.0.0.0",
Port: 8000,
},
}
}