Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 6,149 for pkgh (0.05 sec)

  1. src/cmd/compile/internal/types2/stdlib_test.go

    			filenames = append(filenames, filepath.Join(pkg.Dir, name))
    		}
    	}
    	return filenames, nil
    }
    
    func walkPkgDirs(dir string, pkgh func(dir string, filenames []string), errh func(args ...interface{})) {
    	w := walker{pkgh, errh}
    	w.walk(dir)
    }
    
    type walker struct {
    	pkgh func(dir string, filenames []string)
    	errh func(args ...any)
    }
    
    func (w *walker) walk(dir string) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:18:33 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  2. src/go/types/stdlib_test.go

    			filenames = append(filenames, filepath.Join(pkg.Dir, name))
    		}
    	}
    	return filenames, nil
    }
    
    func walkPkgDirs(dir string, pkgh func(dir string, filenames []string), errh func(args ...any)) {
    	w := walker{pkgh, errh}
    	w.walk(dir)
    }
    
    type walker struct {
    	pkgh func(dir string, filenames []string)
    	errh func(args ...any)
    }
    
    func (w *walker) walk(dir string) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 19 04:39:56 UTC 2023
    - 13.7K bytes
    - Viewed (0)
  3. src/cmd/doc/pkg.go

    		pkg.constsDoc(printed)
    		pkg.varsDoc(printed)
    		pkg.funcsDoc()
    		pkg.typesDoc()
    
    	case pkg.pkg.Name == "main" && !showCmd:
    		// Show only package docs for commands.
    		return
    
    	default:
    		if !short {
    			pkg.newlines(2) // Guarantee blank line before the components.
    		}
    		pkg.valueSummary(pkg.doc.Consts, false)
    		pkg.valueSummary(pkg.doc.Vars, false)
    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/load/pkg.go

    	}
    
    	bp, err := ctxt.ImportDir(dir, 0)
    	pkg := new(Package)
    	pkg.Internal.Local = true
    	pkg.Internal.CmdlineFiles = true
    	pkg.load(ctx, opts, "command-line-arguments", &stk, nil, bp, err)
    	if !cfg.ModulesEnabled {
    		pkg.Internal.LocalPrefix = dirToImportPath(dir)
    	}
    	pkg.ImportPath = "command-line-arguments"
    	pkg.Target = ""
    	pkg.Match = gofiles
    
    	if pkg.Name == "main" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 28 17:00:51 UTC 2024
    - 120K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types/pkg.go

    	if pkg == nil {
    		pkg = nopkg
    	}
    	if s := pkg.Syms[name]; s != nil {
    		return s, true
    	}
    
    	s = &Sym{
    		Name: name,
    		Pkg:  pkg,
    	}
    	pkg.Syms[name] = s
    	return s, false
    }
    
    func (pkg *Pkg) LookupBytes(name []byte) *Sym {
    	// TODO(gri) remove this check in favor of specialized lookup
    	if pkg == nil {
    		pkg = nopkg
    	}
    	if s := pkg.Syms[string(name)]; s != nil {
    		return s
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Nov 08 16:28:50 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  6. src/cmd/go/testdata/script/cover_statements.txt

    -- go.mod --
    module m
    
    go 1.16
    -- pkg1/a.go --
    package pkg1
    
    import "fmt"
    
    func F() {
    	fmt.Println("pkg1")
    }
    -- pkg2/a.go --
    package pkg2
    
    import "fmt"
    
    func F() {
    	fmt.Println("pkg2")
    }
    -- pkg2/a_test.go --
    package pkg2
    -- pkg3/a.go --
    package pkg3
    
    import "fmt"
    
    func F() {
    	fmt.Println("pkg3")
    }
    -- pkg3/a_test.go --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Dec 06 17:36:30 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  7. src/cmd/doc/testdata/pkg.go

    // Copyright 2015 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.
    
    // Package comment.
    package pkg
    
    import "io"
    
    // Constants
    
    // Comment about exported constant.
    const ExportedConstant = 1
    
    // Comment about internal constant.
    const internalConstant = 2
    
    // Comment about block of constants.
    const (
    	// Comment before ConstOne.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 07 19:16:55 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  8. hack/verify-pkg-names.sh

    # See the License for the specific language governing permissions and
    # limitations under the License.
    
    # This script verifies whether codes follow golang convention.
    # Usage: `hack/verify-pkg-names.sh`.
    
    set -o errexit
    set -o nounset
    set -o pipefail
    
    KUBE_ROOT=$(dirname "${BASH_SOURCE[0]}")/..
    source "${KUBE_ROOT}/hack/lib/init.sh"
    
    cd "${KUBE_ROOT}"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 11 21:06:28 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/test_compile_multi_pkg.txt

    go test -c -o $devnull ./...
    
    rm pkg1.test$GOEXE
    rm pkg2.test$GOEXE
    go test -o . ./pkg/...
    exists -exec pkg1.test$GOEXE
    exists -exec pkg2.test$GOEXE
    
    -- go.mod --
    module example
    
    -- pkg/pkg1/pkg1_test.go --
    package pkg1
    
    -- pkg/pkg2/pkg2_test.go --
    package pkg2
    
    -- anotherpkg/pkg1/pkg1_test.go --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 22:09:34 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/instantiate_test.go

    func TestInstantiateNonEquality(t *testing.T) {
    	const src = "package p; type T[P any] int"
    	pkg1 := mustTypecheck(src, nil, nil)
    	pkg2 := mustTypecheck(src, nil, nil)
    	// We consider T1 and T2 to be distinct types, so their instances should not
    	// be deduplicated by the context.
    	T1 := pkg1.Scope().Lookup("T").Type().(*Named)
    	T2 := pkg2.Scope().Lookup("T").Type().(*Named)
    	ctxt := NewContext()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 28 17:58:07 UTC 2023
    - 5.8K bytes
    - Viewed (0)
Back to top