Skip to content

Conversation

SVilgelm
Copy link
Member

Update logging to use the new standard library slog package
instead of golang.org/x/exp/slog. Replace imports across
config.go, main.go, log.go to import "log/slog" and remove the
x/exp dependency from go.mod and go.sum. Also bump go toolchain
version to 1.25 and fix a minor comment wording ("a grace period").
These changes simplify dependencies and adopt the stable slog
implementation from the standard library.

@Copilot Copilot AI review requested due to automatic review settings August 22, 2025 20:57
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR migrates the codebase from using the experimental golang.org/x/exp/slog package to the standard library log/slog package. This change adopts the stable slog implementation that became available in Go's standard library and simplifies the project's dependency tree.

  • Replace all imports of golang.org/x/exp/slog with log/slog
  • Remove the experimental slog dependency from go.mod
  • Update Go toolchain version to 1.25

Reviewed Changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated no comments.

File Description
main.go Updated slog import and fixed comment grammar
log.go Updated slog import to use standard library
config.go Updated slog import to use standard library
go.mod Removed x/exp dependency and bumped Go version

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Update logging to use the new standard library slog package
instead of golang.org/x/exp/slog. Replace imports across
config.go, main.go, log.go to import "log/slog" and remove the
x/exp dependency from go.mod and go.sum. Also bump go toolchain
version to 1.25 and fix a minor comment wording ("a grace period").
These changes simplify dependencies and adopt the stable slog
implementation from the standard library.
@SVilgelm SVilgelm force-pushed the chore/replace-x-slog-with-std branch from 8f5613b to 01212e3 Compare August 22, 2025 21:10
@SVilgelm SVilgelm merged commit b3b28c8 into main Aug 22, 2025
7 checks passed
@SVilgelm SVilgelm deleted the chore/replace-x-slog-with-std branch August 22, 2025 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant