From 63af7c7e8e5e4bbba77e55c027e898c658e622a9 Mon Sep 17 00:00:00 2001 From: thomashamburg Date: Wed, 1 Oct 2025 21:18:23 +0200 Subject: [PATCH] clean up --- .gitignore | 41 +++++++++++++++++++++++++++++++++++++++++ lcars/experiments.go | 6 +++--- 2 files changed, 44 insertions(+), 3 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..af68f4b --- /dev/null +++ b/.gitignore @@ -0,0 +1,41 @@ +# ---> Go +# If you prefer the allow list template instead of the deny list, see community template: +# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore +# +# Binaries for programs and plugins +*.exe +*.exe~ +*.dll +*.so +*.dylib + +bin/ +# Test binary, built with `go test -c` +*.test +tetris +ld +temp + +# Log files +*.log + +# Output of the go coverage tool, specifically when used with LiteIDE +*.out + +# Dependency directories (remove the comment below to include it) +# vendor/ + +# Go workspace file +go.work + +# Datenbanken +*.db +*.db-shm +*.db-wal +*.mdb +*.mdw + +# generated source code +static.go + +rawdata diff --git a/lcars/experiments.go b/lcars/experiments.go index 3c16b6f..18bc7ef 100644 --- a/lcars/experiments.go +++ b/lcars/experiments.go @@ -32,12 +32,12 @@ func readCrew(server *server.Server) (string, error) { defer insstmt.Close() // Print the results - for i, text := range crewNames { + for _, text := range crewNames { rank, name := splitRank(text) if rank == "" { rank = "ERROR" } - fmt.Printf("%d: rank: %s name: %s\n", i+1, rank, name) + // fmt.Printf("%d: rank: %s name: %s\n", i+1, rank, name) _, err = insstmt.Exec(rank, name) if err != nil { return "", err @@ -90,7 +90,7 @@ func readMessages(server *server.Server) error { defer insstmt.Close() // For demonstration, print the parsed messages for _, m := range messages { - fmt.Printf("[%s] %s (%s) - %s\n", m.Timestamp, m.Subsystem, m.Severity, m.Message) + // fmt.Printf("[%s] %s (%s) - %s\n", m.Timestamp, m.Subsystem, m.Severity, m.Message) _, err = insstmt.Exec(m.Timestamp, m.Subsystem, m.Severity, m.Color, m.Message) if err != nil { fmt.Println(err)