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

@ -11,6 +11,7 @@ import (
"crypto/x509"
"encoding/pem"
"fmt"
"log/slog"
"net"
"net/url"
"os"
@ -20,7 +21,6 @@ import (
"time"
"golang.org/x/exp/maps"
"golang.org/x/exp/slog"
"github.com/mjl-/adns"

View File

@ -16,6 +16,7 @@ import (
"errors"
"fmt"
"io"
"log/slog"
"net"
"net/http"
"net/url"
@ -29,7 +30,6 @@ import (
"sync"
"time"
"golang.org/x/exp/slog"
"golang.org/x/text/unicode/norm"
"github.com/mjl-/autocert"

View File

@ -3,12 +3,11 @@
package mox
import (
"log/slog"
"os"
"os/signal"
"strings"
"syscall"
"golang.org/x/exp/slog"
)
// Fork and exec as unprivileged user.

View File

@ -3,8 +3,7 @@ package mox
import (
"crypto/tls"
"fmt"
"golang.org/x/exp/slog"
"log/slog"
"github.com/mjl-/mox/mlog"
)

View File

@ -7,14 +7,13 @@ import (
"errors"
"fmt"
"io"
"log/slog"
"net/http"
"os"
"strings"
"sync"
"time"
"golang.org/x/exp/slog"
"github.com/mjl-/mox/mlog"
"github.com/mjl-/mox/moxvar"
)