From 42a2ad02e4015f25e03c5b7f59a4094996d0a0ac Mon Sep 17 00:00:00 2001 From: Alexander Ek Date: Sat, 23 Mar 2024 15:22:58 +0100 Subject: [PATCH] Description comment in main.go file --- backend/main.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/backend/main.go b/backend/main.go index ff6b94e..42c39b9 100644 --- a/backend/main.go +++ b/backend/main.go @@ -33,6 +33,12 @@ import ( // @externalDocs.description OpenAPI // @externalDocs.url https://swagger.io/resources/open-api/ +/** +Main function for starting the server and initializing configurations. +Reads configuration from file, pretty prints it, connects to the database, +migrates it, and sets up routes for the server. +*/ + func main() { conf, err := config.ReadConfigFromFile("config.toml") if err != nil {