Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for prettyPath (0.09 sec)

  1. src/cmd/doc/main.go

    		if buildPackage.ImportPath == "builtin" {
    			unexported = true
    		}
    
    		symbol, method = parseSymbol(sym)
    		pkg := parsePackage(writer, buildPackage, userPath)
    		paths = append(paths, pkg.prettyPath())
    
    		defer func() {
    			pkg.flush()
    			e := recover()
    			if e == nil {
    				return
    			}
    			pkgError, ok := e.(PackageError)
    			if ok {
    				err = pkgError
    				return
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 19:41:17 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  2. src/cmd/doc/pkg.go

    func (p PackageError) Error() string {
    	return string(p)
    }
    
    // prettyPath returns a version of the package path that is suitable for an
    // error message. It obeys the import comment if present. Also, since
    // pkg.build.ImportPath is sometimes the unhelpful "" or ".", it looks for a
    // directory name in GOROOT or GOPATH if that happens.
    func (pkg *Package) prettyPath() string {
    	path := pkg.build.ImportComment
    	if path == "" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 08 20:15:52 UTC 2024
    - 32K bytes
    - Viewed (0)
Back to top