errtag generates error tags that take hierarchical structure into account.
$ go get -u github.com/pi9min/errtag
Call errtag.ErrorTag()
e.g.
// github.com/foo/bar/cmd/main.go
package main
import (
"fmt"
"github.com/pi9min/errtag"
)
func main() {
fmt.Println(errtag.ErrorTag())
}
The execution result is as follows.
$ go run ./cmd/main.go
main.main
See LICENSE