1
0
Fork 0
mirror of https://github.com/gocsaf/csaf.git synced 2025-12-22 11:55:40 +01:00

Bumped Go version to Go 1.21. Using log/slog instead of golang.org/x/exp/slog

This commit is contained in:
Christian Banse 2024-04-23 15:37:43 +02:00
parent fb1cf32e17
commit 9b1480ae3d
19 changed files with 21 additions and 33 deletions

View file

@ -12,6 +12,7 @@ import (
"crypto/tls"
"errors"
"fmt"
"log/slog"
"net/http"
"os"
"runtime"
@ -25,7 +26,6 @@ import (
"github.com/csaf-poc/csaf_distribution/v3/internal/models"
"github.com/csaf-poc/csaf_distribution/v3/internal/options"
"github.com/csaf-poc/csaf_distribution/v3/util"
"golang.org/x/exp/slog"
"golang.org/x/time/rate"
)

View file

@ -11,6 +11,7 @@ package main
import (
"errors"
"fmt"
"log/slog"
"os"
"path/filepath"
"strings"
@ -19,7 +20,6 @@ import (
"github.com/csaf-poc/csaf_distribution/v3/csaf"
"github.com/csaf-poc/csaf_distribution/v3/util"
"golang.org/x/exp/slog"
)
type fullJob struct {

View file

@ -9,11 +9,11 @@
package main
import (
"log/slog"
"os"
"path/filepath"
"github.com/csaf-poc/csaf_distribution/v3/util"
"golang.org/x/exp/slog"
)
type lazyTransaction struct {

View file

@ -11,13 +11,13 @@ package main
import (
"fmt"
"log/slog"
"os"
"path/filepath"
"github.com/csaf-poc/csaf_distribution/v3/internal/options"
"github.com/gofrs/flock"
"golang.org/x/exp/slog"
)
func lock(lockFile *string, fn func() error) error {

View file

@ -10,6 +10,7 @@ package main
import (
"fmt"
"log/slog"
"os"
"path/filepath"
@ -17,7 +18,6 @@ import (
"github.com/csaf-poc/csaf_distribution/v3/util"
"github.com/ProtonMail/gopenpgp/v2/crypto"
"golang.org/x/exp/slog"
)
type processor struct {