Skip to content

Commit

Permalink
Add generics support
Browse files Browse the repository at this point in the history
  • Loading branch information
momaek committed May 30, 2022
1 parent fffc6d2 commit e3d02b0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16
go-version: 1.18

- name: Check out code
uses: actions/checkout@v2
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module github.com/momaek/formattag

go 1.16
go 1.18

require github.com/fatih/structtag v1.2.0 // indirect
require github.com/fatih/structtag v1.2.0
4 changes: 4 additions & 0 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,7 @@ type TestStruct struct {
}

type Fset struct{}

func Pointer[T any](val T) *T {
return &T
}

0 comments on commit e3d02b0

Please sign in to comment.