Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 42 for Fields (0.18 sec)

  1. doc/next/6-stdlib/99-minor/net/62254.md

    The new type [KeepAliveConfig] permits fine-tuning the keep-alive
    options for TCP connections, via a new [TCPConn.SetKeepAliveConfig]
    Plain Text
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Apr 12 20:57:18 GMT 2024
    - 205 bytes
    - Viewed (0)
  2. src/cmd/cgo/doc.go

    # Go references to C
    
    Within the Go file, C's struct field names that are keywords in Go
    can be accessed by prefixing them with an underscore: if x points at a C
    struct with a field named "type", x._type accesses the field.
    C struct fields that cannot be expressed in Go, such as bit fields
    or misaligned data, are omitted in the Go struct, replaced by
    appropriate padding to reach the next field or the end of the struct.
    
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Sun Mar 31 09:02:45 GMT 2024
    - 42.1K bytes
    - Viewed (0)
  3. src/archive/tar/common.go

    		h.Mode |= c_ISGID
    	}
    	if fm&fs.ModeSticky != 0 {
    		h.Mode |= c_ISVTX
    	}
    	// If possible, populate additional fields from OS-specific
    	// FileInfo fields.
    	if sys, ok := fi.Sys().(*Header); ok {
    		// This FileInfo came from a Header (not the OS). Use the
    		// original Header to populate all remaining fields.
    		h.Uid = sys.Uid
    		h.Gid = sys.Gid
    		h.Uname = sys.Uname
    		h.Gname = sys.Gname
    		h.AccessTime = sys.AccessTime
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Mar 15 16:01:50 GMT 2024
    - 24.7K bytes
    - Viewed (2)
  4. doc/go1.17_spec.html

    and <code>T</code> itself may not be
    a pointer type. The unqualified type name acts as the field name.
    </p>
    
    <pre>
    // A struct with four embedded fields of types T1, *T2, P.T3 and *P.T4
    struct {
    	T1        // field name is T1
    	*T2       // field name is T2
    	P.T3      // field name is T3
    	*P.T4     // field name is T4
    	x, y int  // field names are x and y
    }
    </pre>
    
    <p>
    HTML
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  5. src/cmd/cgo/gcc.go

    			return &r
    		}
    	case *ast.StructType:
    		changed := false
    		fields := *t.Fields
    		fields.List = nil
    		for _, f := range t.Fields.List {
    			ft := p.rewriteUnsafe(f.Type)
    			if ft == f.Type {
    				fields.List = append(fields.List, f)
    			} else {
    				fn := *f
    				fn.Type = ft
    				fields.List = append(fields.List, &fn)
    				changed = true
    			}
    		}
    		if changed {
    			r := *t
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
  6. src/archive/tar/strconv.go

    		return
    	}
    
    	f.formatOctal(b, 0) // Last resort, just write zero
    	f.err = ErrFieldTooLong
    }
    
    func (p *parser) parseOctal(b []byte) int64 {
    	// Because unused fields are filled with NULs, we need
    	// to skip leading NULs. Fields may also be padded with
    	// spaces or NULs.
    	// So we remove leading and trailing NULs and spaces to
    	// be sure.
    	b = bytes.Trim(b, " \x00")
    
    	if len(b) == 0 {
    		return 0
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Tue Aug 01 14:28:42 GMT 2023
    - 9K bytes
    - Viewed (0)
  7. src/cmd/cgo/ast.go

    	case nil:
    
    	// These are ordered and grouped to match ../../go/ast/ast.go
    	case *ast.Field:
    		if len(n.Names) == 0 && context == ctxField {
    			f.walk(&n.Type, ctxEmbedType, visit)
    		} else {
    			f.walk(&n.Type, ctxType, visit)
    		}
    	case *ast.FieldList:
    		for _, field := range n.List {
    			f.walk(field, context, visit)
    		}
    	case *ast.BadExpr:
    	case *ast.Ident:
    	case *ast.Ellipsis:
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Jun 07 16:54:27 GMT 2023
    - 14.3K bytes
    - Viewed (0)
  8. src/archive/zip/reader_test.go

    				Content:  []byte("This small file is in ZIP64 format.\n"),
    				Modified: time.Date(2012, 8, 10, 14, 33, 32, 0, time.UTC),
    				Mode:     0644,
    			},
    		},
    	},
    	// Another zip64 file with different Extras fields. (golang.org/issue/7069)
    	{
    		Name: "zip64-2.zip",
    		File: []ZipTestFile{
    			{
    				Name:     "README",
    				Content:  []byte("This small file is in ZIP64 format.\n"),
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Wed Mar 27 18:23:49 GMT 2024
    - 55.3K bytes
    - Viewed (0)
  9. src/archive/tar/writer.go

    	}
    	return nil
    }
    
    type (
    	stringFormatter func([]byte, string)
    	numberFormatter func([]byte, int64)
    )
    
    // templateV7Plus fills out the V7 fields of a block using values from hdr.
    // It also fills out fields (uname, gname, devmajor, devminor) that are
    // shared in the USTAR, PAX, and GNU formats using the provided formatters.
    //
    // The block returned is only valid until the next call to
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 19.6K bytes
    - Viewed (0)
  10. src/archive/zip/struct.go

    A note about ZIP64:
    
    To be backwards compatible the FileHeader has both 32 and 64 bit Size
    fields. The 64 bit fields will always contain the correct value and
    for normal archives both fields will be the same. For files requiring
    the ZIP64 format the 32 bit fields will be 0xffffffff and the 64 bit
    fields must be used instead.
    
    [ZIP specification]: https://support.pkware.com/pkzip/appnote
    */
    package zip
    
    import (
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 12.1K bytes
    - Viewed (0)
Back to top