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

@ -35,14 +35,13 @@ import (
"errors"
"fmt"
"io"
"log/slog"
"net"
"reflect"
"strconv"
"strings"
"time"
"golang.org/x/exp/slog"
"github.com/mjl-/adns"
"github.com/mjl-/mox/dane"

View File

@ -14,6 +14,7 @@ import (
"fmt"
"hash"
"io"
"log/slog"
"math/big"
"net"
"reflect"
@ -21,8 +22,6 @@ import (
"testing"
"time"
"golang.org/x/exp/slog"
"github.com/mjl-/mox/dns"
"github.com/mjl-/mox/mlog"
"github.com/mjl-/mox/sasl"

View File

@ -3,11 +3,10 @@ package smtpclient
import (
"context"
"fmt"
"log/slog"
"net"
"time"
"golang.org/x/exp/slog"
"github.com/mjl-/mox/dns"
"github.com/mjl-/mox/mlog"
)

View File

@ -4,12 +4,11 @@ import (
"context"
"crypto/tls"
"log"
"log/slog"
"net"
"slices"
"strings"
"golang.org/x/exp/slices"
"golang.org/x/exp/slog"
"github.com/mjl-/mox/dns"
"github.com/mjl-/mox/sasl"
"github.com/mjl-/mox/smtpclient"

View File

@ -7,13 +7,12 @@ import (
"crypto/x509"
"errors"
"fmt"
"log/slog"
"net"
"sort"
"strings"
"time"
"golang.org/x/exp/slog"
"github.com/mjl-/adns"
"github.com/mjl-/mox/dns"