summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2023-02-08 20:53:20 +0100
committerxengineering <me@xengineering.eu>2023-02-08 21:01:27 +0100
commitf9a5140071703faf0c7515a05f52e69fdc1f11ba (patch)
treeee073f3c7fc1a6bbda1eee6e3bec076e73363740 /main.go
parent9005de11ef8b7cf32cc8503e8b5f134eca47b4fb (diff)
downloadceres-f9a5140071703faf0c7515a05f52e69fdc1f11ba.tar
ceres-f9a5140071703faf0c7515a05f52e69fdc1f11ba.tar.zst
ceres-f9a5140071703faf0c7515a05f52e69fdc1f11ba.zip
Move all sources to package main
This project is not so big that it needs multiple packages.
Diffstat (limited to 'main.go')
-rw-r--r--main.go9
1 files changed, 3 insertions, 6 deletions
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)
}