config: server host and port
1 file changed, 4 insertions(+), 0 deletions(-)
changed files
M config/config.go → config/config.go
@@ -19,6 +19,10 @@ Meta struct { Title string `yaml:"title"` Description string `yaml:"description"` } `yaml:"meta"` + Server struct { + Host string `yaml:"host"` + Port int `yaml:"port"` + } `yaml:"server"` } func Read(f string) (*Config, error) {