Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 782 for package_a (0.16 sec)

  1. cmd/import-boss/main.go

    }
    
    func loadPkgs(patterns ...string) ([]*packages.Package, error) {
    	cfg := packages.Config{
    		Mode: packages.NeedName | packages.NeedFiles | packages.NeedImports |
    			packages.NeedDeps | packages.NeedModule,
    		Tests: true,
    	}
    
    	klog.V(1).Infof("loading: %v", patterns)
    	tBefore := time.Now()
    	pkgs, err := packages.Load(&cfg, patterns...)
    	if err != nil {
    		return nil, err
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 12:36:49 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  2. src/cmd/go/internal/help/helpdoc.go

    	`,
    }
    
    var HelpPackages = &base.Command{
    	UsageLine: "packages",
    	Short:     "package lists and patterns",
    	Long: `
    Many commands apply to a set of packages:
    
    	go <action> [packages]
    
    Usually, [packages] is a list of import paths.
    
    An import path that is a rooted path or that begins with
    a . or .. element is interpreted as a file system path and
    denotes the package in that directory.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:54:28 UTC 2024
    - 36.3K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/api.go

    	// i.e., locally vendored packages may not be found.
    	// The types package does not call Import if an ImporterFrom
    	// is present.
    	Importer
    
    	// ImportFrom returns the imported package for the given import
    	// path when imported by a package file located in dir.
    	// If the import failed, besides returning an error, ImportFrom
    	// is encouraged to cache and return a package anyway, if one
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 13:48:53 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  4. src/embed/embed.go

    //
    // The //go:embed directive can be used with both exported and unexported variables,
    // depending on whether the package wants to make the data available to other packages.
    // It can only be used with variables at package scope, not with local variables.
    //
    // Patterns must not match files outside the package's module, such as ‘.git/*’ or symbolic links.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:42:51 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/stdlib_test.go

    		// imports. TestStdlib will collect errors once for each package.
    		return pkg, nil
    	}
    	return nil, err
    }
    
    // getDirPackage gets the package defined in dir from the future cache.
    //
    // If this is the first goroutine requesting the package, getDirPackage
    // type-checks.
    func (c *stdlibChecker) getDirPackage(dir string) (*Package, error) {
    	c.mu.Lock()
    	fut, ok := c.pkgs[dir]
    	if !ok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:18:33 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  6. src/go/build/deps_test.go

    // Existing packages should not have their constraints relaxed
    // without prior discussion.
    // Negative assertions should almost never be removed.
    //
    // "a < b" means package b can import package a.
    //
    // See `go doc internal/dag' for the full syntax.
    //
    // All-caps names are pseudo-names for specific points
    // in the dependency lattice.
    var depsRules = `
    	# No dependencies allowed for any of these packages.
    	NONE
    	< unsafe
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 16:41:13 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  7. src/cmd/go/internal/clean/clean.go

    	UsageLine: "go clean [clean flags] [build flags] [packages]",
    	Short:     "remove object files and cached files",
    	Long: `
    Clean removes object files from package source directories.
    The go command builds most objects in a temporary directory,
    so go clean is mainly concerned with object files left by other
    tools or by manual invocations of go build.
    
    If a package argument is given or the -i or -r flag is set,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  8. src/cmd/go/internal/work/buildid.go

    			a.Target = "DO NOT USE - " + a.Mode
    			return true
    		}
    		// Special case for building a main package: if the only thing we
    		// want the package for is to link a binary, and the binary is
    		// already up-to-date, then to avoid a rebuild, report the package
    		// as up-to-date as well. See "Build IDs" comment above.
    		// TODO(rsc): Rewrite this code to use a TryCache func on the link action.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:31:25 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  9. src/go/types/resolver.go

    }
    
    func (check *Checker) importPackage(at positioner, path, dir string) *Package {
    	// If we already have a package for the given (path, dir)
    	// pair, use it instead of doing a full import.
    	// Checker.impMap only caches packages that are marked Complete
    	// or fake (dummy packages for failed imports). Incomplete but
    	// non-fake packages do require an import to complete them.
    	key := importKey{path, dir}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:22:59 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  10. hack/golangci.yaml

          path-except: cmd/kubeadm
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 15 12:10:09 UTC 2024
    - 9.8K bytes
    - Viewed (0)
Back to top