v0.5.0
Breaking Changes
Package function ToCtx
renamed to NewCtx
.
Package function Logger
renamed to FromCtx
.
Package renamed from slogcontext
to slogctx
.
To fix, change this:
import "github.com/veqryn/slog-context"
var h = slogcontext.NewHandler(slog.NewJSONHandler(os.Stdout, nil), nil)
To this:
import "github.com/veqryn/slog-context"
var h = slogctx.NewHandler(slog.NewJSONHandler(os.Stdout, nil), nil)
Named imports are unaffected.