diff options
| author | Xe Iaso <me@xeiaso.net> | 2023-08-26 14:14:51 -0400 |
|---|---|---|
| committer | Xe Iaso <me@xeiaso.net> | 2023-08-26 14:14:51 -0400 |
| commit | 81fe4e8a12b362f7de9a97210f950c388d047664 (patch) | |
| tree | d71d879f62d74e528a1338470df268669e2565be /internal | |
| parent | 924a12ab6915b7dad147ed57c5a384c142f82c1e (diff) | |
| download | x-81fe4e8a12b362f7de9a97210f950c388d047664.tar.xz x-81fe4e8a12b362f7de9a97210f950c388d047664.zip | |
Switch from ln to slog
ln had a good run, but it's not going to last for the long term. I'm
going to standardize everything on log/slog and deprecate ln.
Closes #385
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/appsluggr/appsluggr.go | 2 | ||||
| -rw-r--r-- | internal/buildinfo.go | 3 | ||||
| -rw-r--r-- | internal/slog/slog.go | 3 | ||||
| -rw-r--r-- | internal/yeet/yeet.go | 2 |
4 files changed, 4 insertions, 6 deletions
diff --git a/internal/appsluggr/appsluggr.go b/internal/appsluggr/appsluggr.go index 350ee9d..ca3251f 100644 --- a/internal/appsluggr/appsluggr.go +++ b/internal/appsluggr/appsluggr.go @@ -6,13 +6,13 @@ import ( "compress/gzip" "io" "log" + "log/slog" "os" "path/filepath" "strings" "github.com/otiai10/copy" "github.com/rogpeppe/go-internal/dirhash" - "golang.org/x/exp/slog" ) // Must calls Pack and panics on an error. diff --git a/internal/buildinfo.go b/internal/buildinfo.go index b3f7390..ab1afd4 100644 --- a/internal/buildinfo.go +++ b/internal/buildinfo.go @@ -2,10 +2,9 @@ package internal import ( "encoding/json" + "log/slog" "net/http" "runtime/debug" - - "golang.org/x/exp/slog" ) func init() { diff --git a/internal/slog/slog.go b/internal/slog/slog.go index 1c01bab..c4b7527 100644 --- a/internal/slog/slog.go +++ b/internal/slog/slog.go @@ -5,10 +5,9 @@ import ( "flag" "fmt" "io" + "log/slog" "net/http" "os" - - "golang.org/x/exp/slog" ) var ( diff --git a/internal/yeet/yeet.go b/internal/yeet/yeet.go index e14ae49..e21c664 100644 --- a/internal/yeet/yeet.go +++ b/internal/yeet/yeet.go @@ -3,13 +3,13 @@ package yeet import ( "context" "fmt" + "log/slog" "os" "os/exec" "strings" "time" "github.com/pkg/errors" - "golang.org/x/exp/slog" ) // current working directory and date:time tag of app boot (useful for tagging slugs) |
