Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for p2 (0.17 sec)

  1. src/cmd/api/testdata/src/pkg/p2/p2.go

    // Copyright 2012 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 p2
    
    type Twoer interface {
    	// Deprecated: No good.
    	PackageTwoMeth()
    }
    
    // Deprecated: No good.
    func F() string {}
    
    func G() Twoer {}
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Dec 02 16:29:41 GMT 2022
    - 337 bytes
    - Viewed (0)
  2. src/cmd/api/testdata/src/pkg/p1/p1.go

    // Copyright 2012 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 p1
    
    import (
    	ptwo "p2"
    )
    
    const (
    	ConstChase2 = constChase // forward declaration to unexported ident
    	constChase  = AIsLowerA  // forward declaration to exported ident
    
    	// Deprecated: use B.
    	A         = 1
    	a         = 11
    	A64 int64 = 1
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Dec 02 16:29:41 GMT 2022
    - 3.3K bytes
    - Viewed (0)
  3. src/cmd/api/testdata/src/pkg/p2/golden.txt

    pkg p2, func F() string
    pkg p2, func F //deprecated
    pkg p2, func G() Twoer
    pkg p2, func NewError(string) error
    pkg p2, type Twoer interface { PackageTwoMeth }
    pkg p2, type Twoer interface, PackageTwoMeth()
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Dec 02 16:29:41 GMT 2022
    - 265 bytes
    - Viewed (0)
  4. doc/go1.17_spec.html

    <a href="#Allocation">new</a>.
    </p>
    
    <pre>
    p1 := &amp;[]int{}    // p1 points to an initialized, empty slice with value []int{} and length 0
    p2 := new([]int)  // p2 points to an uninitialized slice with value nil and length 0
    </pre>
    
    <p>
    The length of an array literal is the length specified in the literal type.
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  5. doc/go_spec.html

    	B0 A0
    	B1 []string
    	B2 struct{ a, b int }
    	B3 struct{ a, c int }
    	B4 func(int, float64) *B0
    	B5 func(x int, y float64) *A1
    
    	C0 = B0
    	D0[P1, P2 any] struct{ x P1; y P2 }
    	E0 = D0[int, string]
    )
    </pre>
    
    <p>
    these types are identical:
    </p>
    
    <pre>
    A0, A1, and []string
    A2 and struct{ a, b int }
    A3 and int
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 00:39:16 GMT 2024
    - 279.6K bytes
    - Viewed (0)
  6. src/cmd/api/testdata/src/pkg/p1/golden.txt

    pkg p1, var ChecksumError error
    pkg p1, var SIPtr *SI
    pkg p1, var SIPtr2 *SI
    pkg p1, var SIVal SI
    pkg p1, var StrConv string
    pkg p1, var V string
    pkg p1, var V1 uint64
    pkg p1, var V2 p2.Twoer
    pkg p1, var VError Error
    pkg p1, var VError //deprecated
    pkg p1, var X I
    pkg p1, var X0 int64
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Dec 02 16:29:41 GMT 2022
    - 3.6K bytes
    - Viewed (0)
  7. src/archive/tar/reader.go

    		case format.has(FormatGNU):
    			hdr.Format = format
    			var p2 parser
    			gnu := tr.blk.toGNU()
    			if b := gnu.accessTime(); b[0] != 0 {
    				hdr.AccessTime = time.Unix(p2.parseNumeric(b), 0)
    			}
    			if b := gnu.changeTime(); b[0] != 0 {
    				hdr.ChangeTime = time.Unix(p2.parseNumeric(b), 0)
    			}
    
    			// Prior to Go1.8, the Writer had a bug where it would output
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 08 01:59:14 GMT 2024
    - 26.8K bytes
    - Viewed (0)
Back to top