0.2.1 databatage conectage

This commit is contained in:
Peder Vatn Austad
2024-05-24 22:50:31 +02:00
parent 8eeb4a0612
commit be137e0883
7 changed files with 112 additions and 1 deletions

View File

@@ -2,11 +2,15 @@ package main
import (
"log"
"ti1/config"
"ti1/data" // Import the data package
"ti1/export"
)
func main() {
config.PrintDBConfig()
config.ConnectToPostgreSQL()
data, err := data.FetchData() // Use the FetchData function from the data package
if err != nil {
log.Fatal(err)