Skip to content

Commit

Permalink
fix: add go1.18 build tag for generics
Browse files Browse the repository at this point in the history
  • Loading branch information
ernado committed May 31, 2022
1 parent fa67b69 commit cef70f2
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 cef70f2

Please sign in to comment.