replace packages slog and slices from golang.org/x/exp with stdlib

since we are now at go1.21 as minimum.
This commit is contained in:
Mechiel Lukkien
2024-02-08 14:49:01 +01:00
parent c698cd07d9
commit d1b87cdb0d
123 changed files with 191 additions and 4860 deletions

View File

@ -33,9 +33,11 @@ import (
"fmt"
"hash"
"io"
"log/slog"
"os"
"path/filepath"
"runtime/debug"
"slices"
"sort"
"strconv"
"strings"
@ -43,8 +45,6 @@ import (
"time"
"golang.org/x/crypto/bcrypt"
"golang.org/x/exp/slices"
"golang.org/x/exp/slog"
"golang.org/x/text/unicode/norm"
"github.com/mjl-/bstore"

View File

@ -1,10 +1,9 @@
package store
import (
"log/slog"
"os"
"golang.org/x/exp/slog"
"github.com/mjl-/mox/mlog"
)

View File

@ -8,14 +8,13 @@ import (
"context"
"fmt"
"io"
"log/slog"
"os"
"path/filepath"
"sort"
"strings"
"time"
"golang.org/x/exp/slog"
"github.com/mjl-/bstore"
"github.com/mjl-/mox/mlog"

View File

@ -6,6 +6,7 @@ import (
"errors"
"fmt"
"io"
"log/slog"
"os"
"path/filepath"
"strconv"
@ -13,7 +14,6 @@ import (
"time"
"golang.org/x/exp/maps"
"golang.org/x/exp/slog"
"github.com/mjl-/mox/mlog"
)

View File

@ -6,12 +6,11 @@ import (
"encoding/base64"
"errors"
"fmt"
"log/slog"
"runtime/debug"
"sync"
"time"
"golang.org/x/exp/slog"
"github.com/mjl-/bstore"
"github.com/mjl-/mox/metrics"

View File

@ -6,13 +6,12 @@ import (
"errors"
"fmt"
"io"
"log/slog"
"runtime"
"slices"
"sort"
"time"
"golang.org/x/exp/slices"
"golang.org/x/exp/slog"
"github.com/mjl-/bstore"
"github.com/mjl-/mox/message"

View File

@ -4,11 +4,10 @@ import (
"context"
"errors"
"fmt"
"log/slog"
"os"
"path/filepath"
"golang.org/x/exp/slog"
"github.com/mjl-/bstore"
"github.com/mjl-/mox/config"