Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for 42 (0.15 sec)

  1. doc/go1.17_spec.html

    	c = 3          // c == 3  (iota == 2, unused)
    	d = 1 << iota  // d == 8  (iota == 3)
    )
    
    const (
    	u         = iota * 42  // u == 0     (untyped integer constant)
    	v float64 = iota * 42  // v == 42.0  (float64 constant)
    	w         = iota * 42  // w == 84    (untyped integer constant)
    )
    
    const x = iota  // x == 0
    const y = iota  // y == 0
    </pre>
    
    <p>
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  2. src/archive/zip/reader_test.go

    00000a0 ff c2 54 8e 57 39 00 05 00 fa ff 00 05 00 fa ff
    00000b0 00 14 00 eb ff 42 88 21 c4 00 00 14 00 eb ff 42
    00000c0 88 21 c4 00 00 14 00 eb ff 42 88 21 c4 00 00 14
    00000d0 00 eb ff 42 88 21 c4 00 00 14 00 eb ff 42 88 21
    00000e0 c4 00 00 00 00 ff ff 00 00 00 ff ff 00 34 00 cb
    00000f0 ff 42 88 21 c4 00 00 00 00 ff ff 00 00 00 ff ff
    0000100 00 34 00 cb ff 42 e8 21 5e 0f 00 00 00 ff ff 0a
    0000110 f0 66 64 12 61 c0 15 dc e8 a0 48 bf 48 af 2a b3
    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)
  3. src/cmd/cgo/doc.go

    	//
    	// int
    	// bridge_int_func(intFunc f)
    	// {
    	//		return f();
    	// }
    	//
    	// int fortytwo()
    	// {
    	//	    return 42;
    	// }
    	import "C"
    	import "fmt"
    
    	func main() {
    		f := C.intFunc(C.fortytwo)
    		fmt.Println(int(C.bridge_int_func(f)))
    		// Output: 42
    	}
    
    In C, a function argument written as a fixed size array
    actually requires a pointer to the first element of the array.
    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)
  4. doc/go_spec.html

    	c = 3          // c == 3  (iota == 2, unused)
    	d = 1 &lt;&lt; iota  // d == 8  (iota == 3)
    )
    
    const (
    	u         = iota * 42  // u == 0     (untyped integer constant)
    	v float64 = iota * 42  // v == 42.0  (float64 constant)
    	w         = iota * 42  // w == 84    (untyped integer constant)
    )
    
    const x = iota  // x == 0
    const y = iota  // y == 0
    </pre>
    
    <p>
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu May 02 22:43:51 GMT 2024
    - 279.6K bytes
    - Viewed (0)
  5. src/bytes/bytes_test.go

    	}
    }
    
    func TestClone(t *testing.T) {
    	var cloneTests = [][]byte{
    		[]byte(nil),
    		[]byte{},
    		Clone([]byte{}),
    		[]byte(strings.Repeat("a", 42))[:0],
    		[]byte(strings.Repeat("a", 42))[:0:0],
    		[]byte("short"),
    		[]byte(strings.Repeat("a", 42)),
    	}
    	for _, input := range cloneTests {
    		clone := Clone(input)
    		if !Equal(clone, input) {
    			t.Errorf("Clone(%q) = %q; want %q", input, clone, input)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Jan 24 16:07:25 GMT 2024
    - 56.2K bytes
    - Viewed (0)
  6. src/archive/zip/zip_test.go

    )
    
    func TestOver65kFiles(t *testing.T) {
    	if testing.Short() && testenv.Builder() == "" {
    		t.Skip("skipping in short mode")
    	}
    	buf := new(strings.Builder)
    	w := NewWriter(buf)
    	const nFiles = (1 << 16) + 42
    	for i := 0; i < nFiles; i++ {
    		_, err := w.CreateHeader(&FileHeader{
    			Name:   fmt.Sprintf("%d.dat", i),
    			Method: Store, // Deflate is too slow when it is compiled with -race flag
    		})
    		if err != nil {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 19.5K bytes
    - Viewed (0)
Back to top