From 1892327cee2c3fa1d3bea729bd08eb63c2189a96 Mon Sep 17 00:00:00 2001 From: FChannel <> Date: Sat, 30 Apr 2022 11:00:55 -0700 Subject: restructured code base to prevent circular dependicies --- config/config.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'config') diff --git a/config/config.go b/config/config.go index 93531b8..10c029c 100644 --- a/config/config.go +++ b/config/config.go @@ -2,6 +2,7 @@ package config import ( "bufio" + "database/sql" "log" "os" "strconv" @@ -30,6 +31,7 @@ var ActivityStreams = "application/ld+json; profile=\"https://www.w3.org/ns/acti var SupportedFiles = []string{"image/gif", "image/jpeg", "image/png", "image/webp", "image/apng", "video/mp4", "video/ogg", "video/webm", "audio/mpeg", "audio/ogg", "audio/wav", "audio/wave", "audio/x-wav"} var Key string var Themes []string +var DB *sql.DB func GetConfigValue(value string, ifnone string) string { file, err := os.Open("config/config-init") -- cgit v1.2.3