From f9a5140071703faf0c7515a05f52e69fdc1f11ba Mon Sep 17 00:00:00 2001 From: xengineering Date: Wed, 8 Feb 2023 20:53:20 +0100 Subject: Move all sources to package main This project is not so big that it needs multiple packages. --- main.go | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index 4efab32..9df2917 100644 --- a/main.go +++ b/main.go @@ -3,22 +3,19 @@ package main import ( "log" - - "xengineering.eu/ceres/utils" - "xengineering.eu/ceres/web" ) func main() { // read all sources of runtime configuration (e.g. CLI flags and config file) - config := utils.GetRuntimeConfig() + config := GetRuntimeConfig() // print start message log.Printf("Starting ceres with config file '%s'\n", config.Path) // initialize database - db := utils.InitDatabase(config.Database) + db := InitDatabase(config.Database) // start web server - web.RunServer(config.Http, &db) + RunServer(config.Http, &db) } -- cgit v1.2.3-70-g09d2