Skip to content

Commit

Permalink
feat: use any generic type
Browse files Browse the repository at this point in the history
  • Loading branch information
cobbinma committed Feb 22, 2024
1 parent 0b7b737 commit 264f0f1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [0.0.2] - 2024-02-22

### Changed

- Use `any` generic for snapshot function instead of `comparable`

## [0.0.1] - 2024-02-19

* First Release 🚀
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ FAIL
### Review

```sh
go install github.com/cobbinma/bromide/cmd/[email protected].1
go install github.com/cobbinma/bromide/cmd/[email protected].2
```

![screenshot](./assets/Screenshot.png)
Expand Down
2 changes: 1 addition & 1 deletion bromide.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/davecgh/go-spew/spew"
)

func Snapshot[K comparable](t *testing.T, item K, options ...Option) {
func Snapshot[K any](t *testing.T, item K, options ...Option) {
t.Helper()

config := &config{}
Expand Down

0 comments on commit 264f0f1

Please sign in to comment.