Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 28 of 28 for go2 (0.02 sec)

  1. src/cmd/go/testdata/script/embed.txt

    # build embeds x.txt
    go build -x
    stderr 'x.txt'
    
    # build uses cache correctly
    go build -x
    ! stderr 'x.txt'
    cp x.txt2 x.txt
    go build -x
    stderr 'x.txt'
    
    # build rejects invalid names
    cp x.go2 x.go
    go build -x
    cp x.txt .git
    ! go build -x
    stderr '^x.go:5:12: pattern [*]t: cannot embed file [.]git: invalid name [.]git$'
    rm .git
    
    # build rejects symlinks
    [symlink] symlink x.tzt -> x.txt
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 09 18:03:59 UTC 2021
    - 2.3K bytes
    - Viewed (0)
  2. test/literal2.go

    // run
    
    // Copyright 2019 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.
    
    // Test Go2 literal syntax for basic types.
    // Avoid running gofmt on this file to preserve the
    // test cases with upper-case prefixes (0B, 0O, 0X).
    
    package main
    
    import "fmt"
    
    func assert(cond bool) {
    	if !cond {
    		panic("assertion failed")
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 19 22:45:09 UTC 2019
    - 2.2K bytes
    - Viewed (0)
  3. test/typeparam/builtins.go

    // license that can be found in the LICENSE file.
    
    // This file tests built-in calls on generic types.
    
    // derived and expanded from cmd/compile/internal/types2/testdata/check/builtins.go2
    
    package builtins
    
    // close
    
    type C0 interface{ int }
    type C1 interface{ chan int }
    type C2 interface{ chan int | <-chan int }
    type C3 interface{ chan int | chan float32 }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 09:04:48 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  4. src/internal/types/testdata/check/typeinst1.go

    // Parameterized types with methods
    
    func (l List[E]) Head() (_ E, _ bool) {
    	if len(l) > 0 {
    		return l[0], true
    	}
    	return
    }
    
    // A test case for instantiating types with other types (extracted from map.go2)
    
    type Pair[K any] struct {
    	key K
    }
    
    type Receiver[T any] struct {
    	values T
    }
    
    type Iterator[K any] struct {
    	r Receiver[Pair[K]]
    }
    
    func Values [T any] (r Receiver[T]) T {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:27 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  5. test/typeparam/issue44688.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // derived & expanded from cmd/compile/internal/types2/testdata/fixedbugs/issue44688.go2
    
    package main
    
    type A1[T any] struct {
    	val T
    }
    
    func (p *A1[T]) m1(val T) {
    	p.val = val
    }
    
    type A2[T any] interface {
    	m2(T)
    }
    
    type B1[T any] struct {
    	filler int
    	*A1[T]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 1.9K bytes
    - Viewed (0)
  6. src/internal/types/testdata/check/map1.go

    // Copyright 2019 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.
    
    // This file is like map.go2, but instead if importing chans, it contains
    // the necessary functionality at the end of the file.
    
    // Package orderedmap provides an ordered map, implemented as a binary tree.
    package orderedmap
    
    // Map is an ordered map.
    type Map[K, V any] struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 02 02:58:32 UTC 2022
    - 3.4K bytes
    - Viewed (0)
  7. src/go/parser/error_test.go

    		t.Fatal(err)
    	}
    	for _, d := range list {
    		name := d.Name()
    		t.Run(name, func(t *testing.T) {
    			if !d.IsDir() && !strings.HasPrefix(name, ".") && (strings.HasSuffix(name, ".src") || strings.HasSuffix(name, ".go2")) {
    				mode := DeclarationErrors | AllErrors
    				if *traceErrs {
    					mode |= Trace
    				}
    				checkErrors(t, filepath.Join(testdata, name), nil, mode, true)
    			}
    		})
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 27 19:47:49 UTC 2022
    - 5.9K bytes
    - Viewed (0)
  8. cmd/testdata/decryptObjectInfo.json.zst

    ":"IAAfAMu9GY71jM4c+ErOSpn6cTpWsaaYink9t/P5vw9y7NHE7kokpA==","X-Minio-Internal-Server-Side-Encryption-Seal-Algorithm":"DAREv2-HMAC-SHA256","content-type":"application/octet-stream"}},{"Bucket":"buck1","Name":"go_113/src/cmd/internal/goobj/testdata/go2.go","UserDef":{"X-Minio-Internal-Server-Side-Encryption-Iv":"WslegPX2E6oC997ZwbX0=","X-Minio-Internal-Server-Side-Encryption-S3-Kms-Key-Id":"my-minio-key","X-Minio-Internal-Server-Side-Encryption-S3-Kms-Sealed-Key":"IAAfAIL/rxMkHpJz15q7L0ejpSRv==",...
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Oct 29 16:34:20 UTC 2020
    - 164K bytes
    - Viewed (0)
Back to top