| 1 | package errorsxscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack/internal/errorsx`/ |
| 2 | |
| 3 | // String representing an error, useful for declaring string constants as errors. |
| 4 | type Stringscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack/internal/errorsx`/String# string |
| 5 | |
| 6 | func (t Stringscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack/internal/errorsx`/String#) Errorscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack/internal/errorsx`/String#Error().() string { |
| 7 | return string(t) |
| 8 | } |
| 9 | |
| 10 | // Is reports whether String matches with the target error |
| 11 | func (t Stringscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack/internal/errorsx`/String#) Isscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack/internal/errorsx`/String#Is().(target error) bool { |
| 12 | if target == nil { |
| 13 | return false |
| 14 | } |
| 15 | |
| 16 | return t.Errorscip-go gomod github.com/slack-go/slack . `github.com/slack-go/slack/internal/errorsx`/String#Error().() == target.Error() |
| 17 | } |