Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 54 for samp (0.17 sec)

  1. doc/go1.17_spec.html

    map[Point]string{{0, 0}: "orig"}    // same as map[Point]string{Point{0, 0}: "orig"}
    
    type PPoint *Point
    [2]*Point{{1.5, -3.5}, {}}          // same as [2]*Point{&Point{1.5, -3.5}, &Point{}}
    [2]PPoint{{1.5, -3.5}, {}}          // same as [2]PPoint{PPoint(&Point{1.5, -3.5}), PPoint(&Point{})}
    </pre>
    
    <p>
    A parsing ambiguity arises when a composite literal using the
    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. api/go1.13.txt

    pkg syscall (netbsd-arm64-cgo), const ETHERTYPE_SNA = 32981
    pkg syscall (netbsd-arm64-cgo), const ETHERTYPE_SNA ideal-int
    pkg syscall (netbsd-arm64-cgo), const ETHERTYPE_SNMP = 33100
    pkg syscall (netbsd-arm64-cgo), const ETHERTYPE_SNMP ideal-int
    pkg syscall (netbsd-arm64-cgo), const ETHERTYPE_SONIX = 64245
    pkg syscall (netbsd-arm64-cgo), const ETHERTYPE_SONIX ideal-int
    Plain Text
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Aug 08 18:44:16 GMT 2019
    - 452.6K bytes
    - Viewed (0)
  9. doc/go_spec.html

    map[Point]string{{0, 0}: "orig"}    // same as map[Point]string{Point{0, 0}: "orig"}
    
    type PPoint *Point
    [2]*Point{{1.5, -3.5}, {}}          // same as [2]*Point{&amp;Point{1.5, -3.5}, &amp;Point{}}
    [2]PPoint{{1.5, -3.5}, {}}          // same as [2]PPoint{PPoint(&amp;Point{1.5, -3.5}), PPoint(&amp;Point{})}
    </pre>
    
    <p>
    A parsing ambiguity arises when a composite literal using the
    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)
  10. 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)
Back to top