diff options
Diffstat (limited to 'src/web.go')
-rw-r--r-- | src/web.go | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -16,17 +16,17 @@ const ( ) type WebServer struct { - config *webConfig + config *WebConfig } -type webConfig struct { +type WebConfig struct { BindAddress string `json:"bind_address"` BindPort string `json:"bind_port"` } -func NewWebServer(cfg *webConfig) WebServer { +func NewWebServer() WebServer { server := WebServer{} - server.config = cfg + server.config = &(config.Web) return server } |