update go to 1.26 and dependencies (#29)

This commit is contained in:
T. von Dein
2026-09-01 10:42:56 +02:00
parent 1d45b2c6fe
commit 497b8b3201
6 changed files with 80 additions and 68 deletions

View File

@@ -1,5 +1,7 @@
package cfg
/*
Copyright © 2025 Thomas von Dein
Copyright © 2025-2026 Thomas von Dein
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -14,7 +16,6 @@ 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 <http://www.gnu.org/licenses/>.
*/
package cfg
import (
"fmt"
@@ -26,7 +27,7 @@ import (
"codeberg.org/scip/anydb/app"
"codeberg.org/scip/anydb/common"
"github.com/lmittmann/tint"
"github.com/pelletier/go-toml"
"github.com/pelletier/go-toml/v2"
"github.com/tlinden/yadu"
)
@@ -148,8 +149,7 @@ func (conf *Config) SetLogger() {
AddSource: false,
}
handler := tint.NewHandler(os.Stderr, opts)
logger := slog.New(handler)
logger := slog.New(tint.NewTextHandler(os.Stderr, opts))
slog.SetDefault(logger)
}