github.com/samlitowitz/goimportcycle@v1.0.9/internal/modfile/errors.go (about) 1 package modfile 2 3 import "fmt" 4 5 type FileNotFoundError struct { 6 Name string 7 } 8 9 func (err *FileNotFoundError) Error() string { 10 return fmt.Sprintf("`%s` not found.", err.Name) 11 } 12 13 type ModulePathNotFoundError struct{} 14 15 func (err *ModulePathNotFoundError) Error() string { 16 return "go module path not found" 17 }