1// Copyright 2020 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5package a
6
7type myError string
8
9func (e myError) Error() string { return string(e) }
10
11const myErrorVal myError = "error"
12
13func IsMyError(err error) bool {
14	return err == error(myErrorVal)
15}
16