From 462c7ddc70f7c4da9515298439246f3b40b244f5 Mon Sep 17 00:00:00 2001 From: Anirudh Oppiliappan Date: Mon, 12 Dec 2022 22:58:23 +0530 Subject: config: server host and port --- config/config.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'config/config.go') diff --git a/config/config.go b/config/config.go index 65d1a71..1a29e4f 100644 --- a/config/config.go +++ b/config/config.go @@ -19,6 +19,10 @@ type Config 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) { -- cgit