Skip to content

v0.5.0

Compare
Choose a tag to compare
@veqryn veqryn released this 03 Jan 08:04
· 32 commits to main since this release

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.