Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for identity (0.17 sec)

  1. doc/go1.17_spec.html

    field declaration. An empty tag string is equivalent to an absent tag.
    The tags are made visible through a <a href="/pkg/reflect/#StructTag">reflection interface</a>
    and take part in <a href="#Type_identity">type identity</a> for structs
    but are otherwise ignored.
    </p>
    
    <pre>
    struct {
    	x, y float64 ""  // an empty tag string is like an absent tag
    	name string  "any string is permitted as a tag"
    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/tar/strconv.go

    	// If the first bit is set, then all following bits constitute a two's
    	// complement encoded number in big-endian byte order.
    	if len(b) > 0 && b[0]&0x80 != 0 {
    		// Handling negative numbers relies on the following identity:
    		//	-a-1 == ^a
    		//
    		// If the number is negative, we use an inversion mask to invert the
    		// data bytes and treat the value as an unsigned number.
    		var inv byte // 0x00 if positive or zero, 0xff if negative
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 01 14:28:42 GMT 2023
    - 9K bytes
    - Viewed (0)
  3. doc/go_spec.html

    field declaration. An empty tag string is equivalent to an absent tag.
    The tags are made visible through a <a href="/pkg/reflect/#StructTag">reflection interface</a>
    and take part in <a href="#Type_identity">type identity</a> for structs
    but are otherwise ignored.
    </p>
    
    <pre>
    struct {
    	x, y float64 ""  // an empty tag string is like an absent tag
    	name string  "any string is permitted as a tag"
    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)
  4. src/cmd/cgo/doc.go

    C source.
    
    Cgo first invokes gcc -E -dM on the preamble, in order to find out
    about simple #defines for constants and the like. These are recorded
    for later use.
    
    Next, cgo needs to identify the kinds for each identifier. For the
    identifiers C.foo, cgo generates this C program:
    
    	<preamble>
    	#line 1 "not-declared"
    	void __cgo_f_1_1(void) { __typeof__(foo) *__cgo_undefined__1; }
    	#line 1 "not-type"
    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)
  5. src/archive/tar/writer_test.go

    )
    
    func bytediff(a, b []byte) string {
    	const (
    		uniqueA  = "-  "
    		uniqueB  = "+  "
    		identity = "   "
    	)
    	var ss []string
    	sa := strings.Split(strings.TrimSpace(hex.Dump(a)), "\n")
    	sb := strings.Split(strings.TrimSpace(hex.Dump(b)), "\n")
    	for len(sa) > 0 && len(sb) > 0 {
    		if sa[0] == sb[0] {
    			ss = append(ss, identity+sa[0])
    		} else {
    			ss = append(ss, uniqueA+sa[0])
    			ss = append(ss, uniqueB+sb[0])
    		}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Feb 27 16:39:23 GMT 2024
    - 38.7K bytes
    - Viewed (0)
  6. src/cmd/cgo/gcc.go

    	for _, n := range f.Name {
    		if n.Kind == "func" {
    			functions[n.Go] = false
    		}
    	}
    
    	// Now that we have all the name types filled in,
    	// scan through the Refs to identify the ones that
    	// are trying to do a ,err call. Also check that
    	// functions are only used in calls.
    	for _, r := range f.Ref {
    		if r.Name.IsConst() && r.Name.Const == "" {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Nov 02 16:43:23 GMT 2023
    - 97K bytes
    - Viewed (0)
  7. src/archive/tar/format.go

    // such as supported string encodings, support for sub-second timestamps,
    // or support for sparse files.
    //
    // The Writer currently provides no support for sparse files.
    type Format int
    
    // Constants to identify various tar formats.
    const (
    	// Deliberately hide the meaning of constants from public API.
    	_ Format = (1 << iota) / 4 // Sequence of 0, 0, 1, 2, 4, 8, etc...
    
    	// FormatUnknown indicates that the format is unknown.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 18:36:46 GMT 2023
    - 11.3K bytes
    - Viewed (0)
  8. src/archive/tar/reader.go

    // This assumes that 0.0 headers have already been converted to 0.1 headers
    // by the PAX header parsing logic.
    func (tr *Reader) readGNUSparsePAXHeaders(hdr *Header) (sparseDatas, error) {
    	// Identify the version of GNU headers.
    	var is1x0 bool
    	major, minor := hdr.PAXRecords[paxGNUSparseMajor], hdr.PAXRecords[paxGNUSparseMinor]
    	switch {
    	case major == "0" && (minor == "0" || minor == "1"):
    		is1x0 = false
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Mar 08 01:59:14 GMT 2024
    - 26.8K bytes
    - Viewed (0)
Back to top