PackageDomainAtDepth returns an error domain that describes the package at the given call depth.
(depth int)
| 146 | // PackageDomainAtDepth returns an error domain that describes the |
| 147 | // package at the given call depth. |
| 148 | func PackageDomainAtDepth(depth int) Domain { |
| 149 | _, f, _, _ := runtime.Caller(1 + depth) |
| 150 | return Domain("error domain: pkg " + filepath.Dir(f)) |
| 151 | } |
| 152 | |
| 153 | // NamedDomain returns an error domain identified by the given string. |
| 154 | func NamedDomain(domainName string) Domain { |
no test coverage detected
searching dependent graphs…