Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 7,350 for pkgh (0.21 sec)

  1. test/fixedbugs/issue5291.dir/pkg1.go

    // Copyright 2013 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 pkg1
    
    import (
    	"runtime"
    )
    
    type T2 *[]string
    
    type Data struct {
    	T1 *[]T2
    }
    
    func CrashCall() (err error) {
    	var d Data
    
    	for count := 0; count < 10; count++ {
    		runtime.GC()
    
    		len := 2 // crash when >=2
    		x := make([]T2, len)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 25 16:47:12 UTC 2013
    - 515 bytes
    - Viewed (0)
  2. test/fixedbugs/bug369.dir/pkg.go

    // Copyright 2011 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 pkg
    
    func NonASCII(b []byte, i int) int {
    	for i = 0; i < len(b); i++ {
    		if b[i] >= 0x80 {
    			break
    		}
    	}
    	return i
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 289 bytes
    - Viewed (0)
  3. 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)
  4. test/fixedbugs/bug382.dir/pkg.go

    // Copyright 2011 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 pkg
    type T struct {}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 197 bytes
    - Viewed (0)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. src/go/types/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: Wed Apr 03 18:48:38 UTC 2024
    - 5.9K bytes
    - Viewed (0)
Back to top