Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 45 for isSame (0.18 sec)

  1. doc/go1.17_spec.html

    <pre>
    [...]Point{{1.5, -3.5}, {0, 0}}     // same as [...]Point{Point{1.5, -3.5}, Point{0, 0}}
    [][]int{{1, 2, 3}, {4, 5}}          // same as [][]int{[]int{1, 2, 3}, []int{4, 5}}
    [][]Point{{{0, 1}, {1, 2}}}         // same as [][]Point{[]Point{Point{0, 1}, Point{1, 2}}}
    map[string]Point{"orig": {0, 0}}    // same as map[string]Point{"orig": Point{0, 0}}
    map[Point]string{{0, 0}: "orig"}    // same as map[Point]string{Point{0, 0}: "orig"}
    
    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)
  2. src/cmd/cgo/doc.go

    by _GoStringPtr. Note that the string contents may not have a trailing
    NUL byte.
    
    As Go doesn't have support for C's union type in the general case,
    C's union types are represented as a Go byte array with the same length.
    
    Go structs cannot embed fields with C types.
    
    Go code cannot refer to zero-sized fields that occur at the end of
    non-empty C structs. To get the address of such a field (which is the
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Sun Mar 31 09:02:45 GMT 2024
    - 42.1K bytes
    - Viewed (0)
  3. src/cmd/api/api_test.go

    			required:  []string{"A", "B", "C"},
    			exception: []string{"B"},
    			ok:        true,
    			out:       "",
    		},
    
    		// Test that a feature required on a subset of ports is implicitly satisfied
    		// by the same feature being implemented on all ports. That is, it shouldn't
    		// say "pkg syscall (darwin-amd64), type RawSockaddrInet6 struct" is missing.
    		// See https://go.dev/issue/4303.
    		{
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Jan 04 17:31:12 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  4. src/bufio/bufio_test.go

    	}
    	{
    		tw := &teststringwriter{}
    		b := NewWriterSize(tw, BufSize)
    		b.Write([]byte("abc")) // same as above, but use Write instead of WriteString
    		tw.check(t, "", "")
    		b.WriteString("123456789012345")
    		tw.check(t, "abc12345", "6789012345") // same as above
    	}
    }
    
    type teststringwriter struct {
    	write       string
    	writeString string
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
  5. src/bytes/buffer_test.go

    	"math/rand"
    	"strconv"
    	"testing"
    	"unicode/utf8"
    )
    
    const N = 10000       // make this bigger for a larger (and slower) test
    var testString string // test data for write tests
    var testBytes []byte  // test data; same as testString but as a slice.
    
    type negativeReader struct{}
    
    func (r *negativeReader) Read([]byte) (int, error) { return -1, nil }
    
    func init() {
    	testBytes = make([]byte, N)
    	for i := 0; i < N; i++ {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 13:31:36 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  6. src/archive/zip/reader_test.go

    //		}
    //		return buf.Bytes()
    //	}
    //
    // The 4 GB of zeros compresses to 4 MB, which compresses to 20 kB,
    // which compresses to 1252 bytes (in the hex dump below).
    //
    // It's here in hex for the same reason as rZipBytes above: to avoid
    // problems with on-disk virus scanners or other zip processors.
    func biggestZipBytes() []byte {
    	s := `
    0000000 50 4b 03 04 14 00 08 00 08 00 00 00 00 00 00 00
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/test/callback.go

    }
    
    // Test that the stack can be unwound through a call out and call back
    // into Go.
    func testCallbackCallers(t *testing.T) {
    	if runtime.Compiler != "gc" {
    		// The exact function names are not going to be the same.
    		t.Skip("skipping for non-gc toolchain")
    	}
    	pc := make([]uintptr, 100)
    	n := 0
    	name := []string{
    		"runtime.cgocallbackg1",
    		"runtime.cgocallbackg",
    		"runtime.cgocallback",
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri May 12 12:00:02 GMT 2023
    - 111.5K bytes
    - Viewed (0)
  8. doc/go_spec.html

    <pre>
    [...]Point{{1.5, -3.5}, {0, 0}}     // same as [...]Point{Point{1.5, -3.5}, Point{0, 0}}
    [][]int{{1, 2, 3}, {4, 5}}          // same as [][]int{[]int{1, 2, 3}, []int{4, 5}}
    [][]Point{{{0, 1}, {1, 2}}}         // same as [][]Point{[]Point{Point{0, 1}, Point{1, 2}}}
    map[string]Point{"orig": {0, 0}}    // same as map[string]Point{"orig": Point{0, 0}}
    map[Point]string{{0, 0}: "orig"}    // same as map[Point]string{Point{0, 0}: "orig"}
    
    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)
  9. src/builtin/builtin.go

    // Type is here for the purposes of documentation only. It is a stand-in
    // for any Go type, but represents the same type for any given function
    // invocation.
    type Type int
    
    // Type1 is here for the purposes of documentation only. It is a stand-in
    // for any Go type, but represents the same type for any given function
    // invocation.
    type Type1 int
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  10. api/README

    compatibility.
    
    Starting with go1.19.txt, each API feature line must end in "#nnnnn"
    giving the GitHub issue number of the proposal issue that accepted
    the new API. This helps with our end-of-cycle audit of new APIs.
    The same requirement applies to next/* (described below), which will
    become a go1.XX.txt for XX >= 19.
    
    The next/ directory contains the only files intended to be mutated.
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 31 19:22:50 GMT 2024
    - 1.2K bytes
    - Viewed (0)
Back to top