From 4891a786d2a770d951c6f05ee7f166e9f153337c Mon Sep 17 00:00:00 2001 From: xoy Date: Sat, 28 Jan 2023 18:45:48 +0100 Subject: [PATCH] fehlerbehebung --- database.go | 2 ++ go.mod | 2 ++ go.sum | 2 ++ 3 files changed, 6 insertions(+) create mode 100644 go.sum diff --git a/database.go b/database.go index b9ff63d..f7497eb 100644 --- a/database.go +++ b/database.go @@ -2,6 +2,8 @@ package main import ( "database/sql" + + _ "github.com/go-sql-driver/mysql" ) func dbConnect(username string, password string, address string, port string, database string) *sql.DB { diff --git a/go.mod b/go.mod index 65e558b..01bdd7b 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,5 @@ module xoy.dev/ctdo go 1.19 + +require github.com/go-sql-driver/mysql v1.7.0 // indirect diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..7109e4c --- /dev/null +++ b/go.sum @@ -0,0 +1,2 @@ +github.com/go-sql-driver/mysql v1.7.0 h1:ueSltNNllEqE3qcWBTD0iQd3IpL/6U+mJxLkazJ7YPc= +github.com/go-sql-driver/mysql v1.7.0/go.mod h1:OXbVy3sEdcQ2Doequ6Z5BW6fXNQTmx+9S1MCJN5yJMI=