Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 1,201 for imposes (0.1 sec)

  1. src/go/format/format.go

    		if !ok || d.Tok != token.IMPORT {
    			// Not an import declaration, so we're done.
    			// Imports are always first.
    			return false
    		}
    		if d.Lparen.IsValid() {
    			// For now assume all grouped imports are unsorted.
    			// TODO(gri) Should check if they are sorted already.
    			return true
    		}
    		// Ungrouped imports are sorted by default.
    	}
    	return false
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  2. src/internal/poll/export_posix_test.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build unix || windows
    
    // Export guts for testing on posix.
    // Since testing imports os and os imports internal/poll,
    // the internal/poll tests can not be in package poll.
    
    package poll
    
    func (fd *FD) EOFError(n int, err error) error {
    	return fd.eofError(n, err)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 29 16:24:51 UTC 2022
    - 432 bytes
    - Viewed (0)
  3. src/cmd/go/testdata/script/mod_replace_import.txt

    # module does not contain a package.
    # TODO(#26909): Ideally these errors should include line numbers for the imports within the main module.
    cd fail
    ! go mod tidy
    stderr '^go: localhost.fail imports\n\tw: module w@latest found \(v0.0.0-00010101000000-000000000000, replaced by ../w\), but does not contain package w$'
    stderr '^go: localhost.fail imports\n\tnonexist: nonexist@v0.1.0: replacement directory ../nonexist does not exist$'
    
    -- go.mod --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Jun 03 21:13:11 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  4. src/go/internal/gcimporter/gcimporter_test.go

    	}
    
    	// import go/internal/gcimporter which imports go/types partially
    	fset := token.NewFileSet()
    	imports := make(map[string]*types.Package)
    	_, err := Import(fset, imports, "go/internal/gcimporter", ".", nil)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	// look for go/types package
    	var goTypesPkg *types.Package
    	for path, pkg := range imports {
    		if path == "go/types" {
    			goTypesPkg = pkg
    			break
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:22:59 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  5. src/cmd/fix/import_test.go

    		fixed := false
    		if !imports(f, p1) {
    			addImport(f, p1)
    			fixed = true
    		}
    		if imports(f, p2) {
    			deleteImport(f, p2)
    			fixed = true
    		}
    		return fixed
    	}
    }
    
    func rewriteImportFn(oldnew ...string) func(*ast.File) bool {
    	return func(f *ast.File) bool {
    		fixed := false
    		for i := 0; i < len(oldnew); i += 2 {
    			if imports(f, oldnew[i]) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 23:34:33 UTC 2016
    - 5K bytes
    - Viewed (0)
  6. src/internal/poll/export_test.go

    // Copyright 2010 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Export guts for testing.
    // Since testing imports os and os imports internal/poll,
    // the internal/poll tests can not be in package poll.
    
    package poll
    
    var Consume = consume
    
    type XFDMutex struct {
    	fdMutex
    }
    
    func (mu *XFDMutex) Incref() bool {
    	return mu.incref()
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Oct 08 03:57:40 UTC 2022
    - 714 bytes
    - Viewed (0)
  7. pkg/kube/kubetypes/types.go

    	Run(stop <-chan struct{})
    }
    
    // DelayedFilter exposes an interface for a filter create delayed informers, which start
    // once the underlying resource is available. See kclient.NewDelayedInformer.
    type DelayedFilter interface {
    	HasSynced() bool
    	KnownOrCallback(f func(stop <-chan struct{})) bool
    }
    
    // WriteAPI exposes a generic API for a client go type for write operations.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 28 16:41:38 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  8. testing/internal-performance-testing/src/main/groovy/org/gradle/performance/generator/FileContentGenerator.groovy

                    if (childPackageName != ownPackageName) {
                        imports += imports == '' ? '\n        ' : ''
                        imports += "import ${childPackageName}.Production${childNumber};\n        "
                    }
                } else {
                    propertyType = "String"
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  9. src/go/build/deps_test.go

    			continue
    		}
    		if bytes.Contains(info.header, buildIgnore) {
    			continue
    		}
    		for _, imp := range info.imports {
    			path := imp.path
    			if !haveImport[path] {
    				haveImport[path] = true
    				imports = append(imports, path)
    			}
    		}
    	}
    	slices.Sort(imports)
    	return imports, nil
    }
    
    // depsPolicy returns a map m such that m[p][d] == true when p can import d.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 16:41:13 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  10. common/config/.golangci-format.yml

    linters-settings:
      gci:
        sections:
          - standard # Captures all standard packages if they do not match another section.
          - default # Contains all imports that could not be matched to another section type.
          - prefix(istio.io/) # Groups all imports with the specified Prefix.
      goimports:
        # put imports beginning with prefix after 3rd-party packages;
        # it's a comma-separated list of prefixes
        local-prefixes: istio.io/
    issues:
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 05 03:02:37 UTC 2024
    - 2K bytes
    - Viewed (0)
Back to top