Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for body (0.19 sec)

  1. doc/go1.17_spec.html

    In contrast to other identifiers, labels are not block scoped and do
    not conflict with identifiers that are not labels. The scope of a label
    is the body of the function in which it is declared and excludes
    the body of any nested function.
    </p>
    
    
    <h3 id="Blank_identifier">Blank identifier</h3>
    
    <p>
    The <i>blank identifier</i> is represented by the underscore character <code>_</code>.
    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/archive/zip/zip_test.go

    	}
    	testValidHeader(&h, t)
    }
    
    // Issue 4393. It is valid to have an extra data header
    // which contains no body.
    func TestZeroLengthHeader(t *testing.T) {
    	h := FileHeader{
    		Name:   "extadata.txt",
    		Method: Deflate,
    		Extra: []byte{
    			85, 84, 5, 0, 3, 154, 144, 195, 77, // tag 21589 size 5
    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)
  3. doc/go_spec.html

    	<li>The scope of an identifier denoting a method receiver, function parameter,
    	    or result variable is the function body.</li>
    
    	<li>The scope of an identifier denoting a type parameter of a function
    	    or declared by a method receiver begins after the name of the function
    	    and ends at the end of the function body.</li>
    
    	<li>The scope of an identifier denoting a type parameter of a type
    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)
  4. src/archive/tar/common.go

    const (
    	// Type '0' indicates a regular file.
    	TypeReg = '0'
    
    	// Deprecated: Use TypeReg instead.
    	TypeRegA = '\x00'
    
    	// Type '1' to '6' are header-only flags and may not have a data body.
    	TypeLink    = '1' // Hard link
    	TypeSymlink = '2' // Symbolic link
    	TypeChar    = '3' // Character device node
    	TypeBlock   = '4' // Block device node
    	TypeDir     = '5' // Directory
    	TypeFifo    = '6' // FIFO node
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24.7K bytes
    - Viewed (2)
  5. src/archive/tar/tar_test.go

    		}
    		if (formats == FormatUnknown) && (err == nil) {
    			t.Errorf("test %d, got nil-error, want non-nil error", i)
    		}
    	}
    }
    
    func Benchmark(b *testing.B) {
    	type file struct {
    		hdr  *Header
    		body []byte
    	}
    
    	vectors := []struct {
    		label string
    		files []file
    	}{{
    		"USTAR",
    		[]file{{
    			&Header{Name: "bar", Mode: 0640, Size: int64(3)},
    			[]byte("foo"),
    		}, {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24K bytes
    - Viewed (0)
Back to top