Skip to content

Commit

Permalink
Merge pull request #20 from go-faster/fix/add-go1.18-tag
Browse files Browse the repository at this point in the history
fix: add go1.18 build tag for generics
  • Loading branch information
ernado committed May 31, 2022
2 parents fa67b69 + cef70f2 commit ff8939f
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions example_Into_test.go
@@ -1,3 +1,5 @@
//go:build go1.18

package errors_test

import (
Expand Down
2 changes: 2 additions & 0 deletions example_Must_test.go
@@ -1,3 +1,5 @@
//go:build go1.18

package errors_test

import (
Expand Down
2 changes: 2 additions & 0 deletions into.go
@@ -1,3 +1,5 @@
//go:build go1.18

package errors

// Into finds the first error in err's chain that matches target type T, and if so, returns it.
Expand Down
2 changes: 2 additions & 0 deletions must.go
@@ -1,3 +1,5 @@
//go:build go1.18

package errors

// Must is a generic helper, like template.Must, that wraps a call to a function returning (T, error)
Expand Down
2 changes: 2 additions & 0 deletions must_test.go
@@ -1,3 +1,5 @@
//go:build go1.18

package errors

import (
Expand Down

0 comments on commit ff8939f

Please sign in to comment.