🎨 set up routes
This commit is contained in:
@@ -1,8 +1,14 @@
|
||||
package config
|
||||
|
||||
import "fmt"
|
||||
|
||||
// System 系统配置
|
||||
type System struct {
|
||||
Host string `yaml:"host"` //主机地址
|
||||
Port string `yaml:"port"` //端口号
|
||||
Env string `yaml:"env"` //环境
|
||||
}
|
||||
|
||||
func (s *System) Addr() string {
|
||||
return fmt.Sprintf("%s:%s", s.Host, s.Port)
|
||||
}
|
||||
|
Reference in New Issue
Block a user