Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

## 📋 Requirements

- Go 1.20+
- Go 1.21+

## 🚀 Install

Expand Down
2 changes: 1 addition & 1 deletion examples/slog_simple_example.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package main

import (
"log/slog"
"os"

"github.com/libgox/slogsimple"
"golang.org/x/exp/slog"
)

func main() {
Expand Down
7 changes: 2 additions & 5 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
module github.com/libgox/slogsimple

go 1.20
go 1.21

require (
github.com/stretchr/testify v1.9.0
golang.org/x/exp v0.0.0-20240823005443-9b4947da3948
)
require github.com/stretchr/testify v1.9.0

require (
github.com/davecgh/go-spew v1.1.1 // indirect
Expand Down
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
golang.org/x/exp v0.0.0-20240823005443-9b4947da3948 h1:kx6Ds3MlpiUHKj7syVnbp57++8WpuKPcR5yjLBjvLEA=
golang.org/x/exp v0.0.0-20240823005443-9b4947da3948/go.mod h1:akd2r19cwCdwSwWeIdzYQGa/EZZyqcOdwWiwj5L5eKQ=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
Expand Down
3 changes: 1 addition & 2 deletions handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ package slogsimple
import (
"context"
"io"
"log/slog"
"strings"
"time"

"golang.org/x/exp/slog"
)

type Config struct {
Expand Down
2 changes: 1 addition & 1 deletion handler_error_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import (
"bytes"
"context"
"errors"
"log/slog"
"testing"

"github.com/stretchr/testify/assert"
"golang.org/x/exp/slog"
)

type ErrorWriter struct{}
Expand Down
2 changes: 1 addition & 1 deletion handler_format_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package slogsimple
import (
"bytes"
"context"
"log/slog"
"testing"
"time"

"github.com/stretchr/testify/assert"
"golang.org/x/exp/slog"
)

func TestLogFormatBasic(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion handler_level_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ package slogsimple
import (
"bytes"
"context"
"log/slog"
"testing"

"github.com/stretchr/testify/assert"
"golang.org/x/exp/slog"
)

func TestLogLevelFiltering(t *testing.T) {
Expand Down
Loading