Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 41 for Fields (0.24 sec)

  1. src/bufio/scan_test.go

    	" abc\tdef\nghi\rjkl\fmno\vpqr\u0085stu\u00a0\n",
    }
    
    // Test that the word splitter returns the same data as strings.Fields.
    func TestScanWords(t *testing.T) {
    	for n, test := range wordScanTests {
    		buf := strings.NewReader(test)
    		s := NewScanner(buf)
    		s.Split(ScanWords)
    		words := strings.Fields(test)
    		var wordCount int
    		for wordCount = 0; wordCount < len(words); wordCount++ {
    			if !s.Scan() {
    				break
    			}
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Sep 22 16:22:42 GMT 2023
    - 14.3K bytes
    - Viewed (0)
  2. doc/asm.html

    as <code>reader__size</code> and the offsets of the two fields
    as <code>reader_buf</code> and <code>reader_r</code>.
    Hence, if register <code>R1</code> contains a pointer to
    a <code>reader</code>, assembly can reference the <code>r</code> field
    as <code>reader_r(R1)</code>.
    </p>
    
    <p>
    If any of these <code>#define</code> names are ambiguous (for example,
    a struct with a <code>_size</code> field), <code>#include
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Tue Nov 28 19:15:27 GMT 2023
    - 36.3K bytes
    - Viewed (0)
  3. src/bytes/bytes_test.go

    func TestFields(t *testing.T) {
    	for _, tt := range fieldstests {
    		b := []byte(tt.s)
    		a := Fields(b)
    
    		// Appending to the results should not change future results.
    		var x []byte
    		for _, v := range a {
    			x = append(v, 'z')
    		}
    
    		result := sliceOfString(a)
    		if !eq(result, tt.a) {
    			t.Errorf("Fields(%q) = %v; want %v", tt.s, a, tt.a)
    			continue
    		}
    
    		if string(b) != tt.s {
    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)
  4. src/builtin/builtin.go

    type any = interface{}
    
    // comparable is an interface that is implemented by all comparable types
    // (booleans, numbers, strings, pointers, channels, arrays of comparable types,
    // structs whose fields are all comparable types).
    // The comparable interface may only be used as a type parameter constraint,
    // not as the type of a variable.
    type comparable interface{ comparable }
    
    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)
  5. src/cmd/asm/internal/arch/arch.go

    		if obj.As(i) >= obj.A_ARCHSPECIFIC {
    			instructions[s] = obj.As(i) + obj.ABaseARM
    		}
    	}
    	// Annoying aliases.
    	instructions["B"] = obj.AJMP
    	instructions["BL"] = obj.ACALL
    	// MCR differs from MRC by the way fields of the word are encoded.
    	// (Details in arm.go). Here we add the instruction so parse will find
    	// it, but give it an opcode number known only to us.
    	instructions["MCR"] = aMCR
    
    	return &Arch{
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Mar 21 06:51:28 GMT 2023
    - 21.3K bytes
    - Viewed (0)
  6. src/archive/tar/reader_test.go

    			Name:     "GNU2/GNU2/long-path-name",
    			Linkname: "GNU4/GNU4/long-linkpath-name",
    			ModTime:  time.Unix(0, 0),
    			Typeflag: '2',
    			Format:   FormatGNU,
    		}},
    	}, {
    		// GNU tar file with atime and ctime fields set.
    		// Created with the GNU tar v1.27.1.
    		//	tar --incremental -S -cvf gnu-incremental.tar test2
    		file: "testdata/gnu-incremental.tar",
    		headers: []*Header{{
    			Name:       "test2/",
    			Mode:       16877,
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Nov 21 21:14:38 GMT 2022
    - 47.1K bytes
    - Viewed (0)
  7. misc/cgo/gmp/gmp.go

    find the definition of xxx.  If xxx is a type, cgo replaces C.xxx with
    a Go translation.  C arithmetic types translate to precisely-sized Go
    arithmetic types.  A C struct translates to a Go struct, field by
    field; unrepresentable fields are replaced with opaque byte arrays.  A
    C union translates into a struct containing the first union member and
    perhaps additional padding.  C arrays become Go arrays.  C pointers
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Apr 11 16:34:30 GMT 2022
    - 9.5K bytes
    - Viewed (0)
  8. src/cmd/api/main_test.go

    			case *ast.StructType:
    				return true // recurse into fields
    			case *ast.InterfaceType:
    				return true // recurse into methods
    			case *ast.FieldList:
    				return true // recurse into fields
    			case *ast.ValueSpec:
    				if isDeprecated(n.Doc) {
    					for _, id := range n.Names {
    						mark(id)
    					}
    				}
    				return false
    			case *ast.Field:
    				if isDeprecated(n.Doc) {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Apr 09 20:48:51 GMT 2024
    - 31.4K bytes
    - Viewed (0)
  9. api/go1.txt

    pkg go/ast, type ExprStmt struct
    pkg go/ast, type ExprStmt struct, X Expr
    pkg go/ast, type Field struct
    pkg go/ast, type Field struct, Comment *CommentGroup
    pkg go/ast, type Field struct, Doc *CommentGroup
    pkg go/ast, type Field struct, Names []*Ident
    pkg go/ast, type Field struct, Tag *BasicLit
    pkg go/ast, type Field struct, Type Expr
    pkg go/ast, type FieldFilter func(string, reflect.Value) bool
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Wed Aug 14 18:58:28 GMT 2013
    - 1.7M bytes
    - Viewed (2)
  10. doc/godebug.md

    field, [`Policies`](/pkg/crypto/x509/#Certificate.Policies), which supports
    certificate policy OIDs with components larger than 31 bits. By default this
    field is only used during parsing, when it is populated with policy OIDs, but
    not used during marshaling. It can be used to marshal these larger OIDs, instead
    of the existing PolicyIdentifiers field, by using the
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Tue Apr 16 17:29:58 GMT 2024
    - 13.5K bytes
    - Viewed (0)
Back to top