WIP Branch completed: Overhaul of site logic, removed comments, repositories

This commit is contained in:
2022-03-09 04:20:27 +00:00
parent cd7a34be0c
commit 860115cbcc
40 changed files with 730 additions and 564 deletions

View File

@@ -16,6 +16,7 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.Rawley Fowler, 2022
*/
import (
"bufio"
"os"
@@ -23,10 +24,10 @@ import (
func LoadApiKey(path string) string {
file, err := os.Open(path)
defer file.Close()
if err != nil {
panic("Could not find file: " + path)
panic("Could not find DSN for database...")
}
defer file.Close()
reader := bufio.NewScanner(file)
if reader.Scan() {
return reader.Text()