Add main server with gin for ZenGO
This commit is contained in:
19
config/config.go
Normal file
19
config/config.go
Normal 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,
|
||||
},
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user