Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for importComments (0.49 sec)

  1. src/cmd/doc/main.go

    	case 2:
    		// Package must be findable and importable.
    		pkg, err := build.Import(args[0], wd, build.ImportComment)
    		if err == nil {
    			return pkg, args[0], args[1], false
    		}
    		for {
    			packagePath, ok := findNextPackage(arg)
    			if !ok {
    				break
    			}
    			if pkg, err := build.ImportDir(packagePath, build.ImportComment); err == nil {
    				return pkg, arg, args[1], true
    			}
    		}
    		return nil, args[0], args[1], false
    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. api/go1.4.txt

    pkg encoding/xml, method (*Decoder) InputOffset() int64
    
    # CL 124940043 cmd/go, go/build: implement import comment checking, Russ Cox <******@****.***>
    pkg go/build, const ImportComment = 4
    pkg go/build, const ImportComment ImportMode
    pkg go/build, type Package struct, ImportComment string
    
    # CL 155050043 go/build: Return MultiplePackageError on importing a dir containing multiple packages, Jens Frederich <******@****.***>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Dec 12 03:01:01 UTC 2014
    - 34K bytes
    - Viewed (0)
  3. src/cmd/doc/pkg.go

    // 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 == "" {
    		path = pkg.build.ImportPath
    	}
    	if path != "." && path != "" {
    		return path
    	}
    	// Convert the source directory into a more useful path.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 08 20:15:52 UTC 2024
    - 32K bytes
    - Viewed (0)
  4. src/cmd/go/internal/list/list.go

        type Package struct {
            Dir            string   // directory containing package sources
            ImportPath     string   // import path of package in dir
            ImportComment  string   // path in import comment on package statement
            Name           string   // package name
            Doc            string   // package documentation string
            Target         string   // install path
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 16:56:39 UTC 2024
    - 33.3K bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/testshared/shared_test.go

    	if shlib != "" {
    		gorootInstallDir = filepath.Dir(shlib)
    	}
    
    	myContext.InstallSuffix = "_dynlink"
    	depP, err := myContext.Import("./depBase", ".", build.ImportComment)
    	if err != nil {
    		return 0, fmt.Errorf("import failed: %v", err)
    	}
    	if depP.PkgTargetRoot == "" {
    		gopathInstallDir = filepath.Dir(goCmd(nil, "list", "-buildmode=shared", "-f", "{{.Target}}", "./depBase"))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Aug 26 01:54:41 UTC 2023
    - 36.3K bytes
    - Viewed (0)
Back to top