Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ImportStack (0.48 sec)

  1. src/cmd/go/internal/load/pkg.go

    	return e.importPath
    }
    
    // An ImportStack is a stack of import paths, possibly with the suffix " (test)" appended.
    // The import path of a test package is the import path of the corresponding
    // non-test package with the suffix "_test" added.
    type ImportStack []string
    
    func (s *ImportStack) Push(p string) {
    	*s = append(*s, p)
    }
    
    func (s *ImportStack) Pop() {
    	*s = (*s)[0 : len(*s)-1]
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 28 17:00:51 UTC 2024
    - 120K bytes
    - Viewed (0)
  2. src/cmd/go/alldocs.go

    // expanded import paths. See golang.org/s/go15vendor for more about vendoring.
    //
    // The error information, if any, is
    //
    //	type PackageError struct {
    //	    ImportStack   []string // shortest path from package named on command line to this one
    //	    Pos           string   // position of error (if present, file:line:col)
    //	    Err           string   // the error itself
    //	}
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:54:28 UTC 2024
    - 142.4K bytes
    - Viewed (0)
Back to top