1. package main
    2. import (
    3. "errors"
    4. "fmt"
    5. )
    6. var errNotFound error = errors.New("Not found error")
    7. func main() {
    8. fmt.Printf("error: %v", errNotFound)
    9. }