Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for str (0.23 sec)

  1. src/bytes/buffer_test.go

    func check(t *testing.T, testname string, buf *Buffer, s string) {
    	bytes := buf.Bytes()
    	str := buf.String()
    	if buf.Len() != len(bytes) {
    		t.Errorf("%s: buf.Len() == %d, len(buf.Bytes()) == %d", testname, buf.Len(), len(bytes))
    	}
    
    	if buf.Len() != len(str) {
    		t.Errorf("%s: buf.Len() == %d, len(buf.String()) == %d", testname, buf.Len(), len(str))
    	}
    
    	if buf.Len() != len(s) {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 13:31:36 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  2. src/cmd/cgo/doc.go

    		0, // v2
    		0, // v3
    		0, // i4
    		0, // i5
    		0, // u6
    		f7,
    		f8,
    		0, // s9
    		0, // s10
    		1
    	};
    
    	const char __cgodebug_str__9[] = s9;
    	const unsigned long long __cgodebug_strlen__9 = sizeof(s9)-1;
    	const char __cgodebug_str__10[] = s10;
    	const unsigned long long __cgodebug_strlen__10 = sizeof(s10)-1;
    
    and again invokes the system C compiler, to produce an object file
    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)
  3. src/bytes/example_test.go

    	fmt.Printf("%s\n", bytes.ToTitle([]byte("хлеб")))
    	// Output:
    	// LOUD NOISES
    	// ХЛЕБ
    }
    
    func ExampleToTitleSpecial() {
    	str := []byte("ahoj vývojári golang")
    	totitle := bytes.ToTitleSpecial(unicode.AzeriCase, str)
    	fmt.Println("Original : " + string(str))
    	fmt.Println("ToTitle : " + string(totitle))
    	// Output:
    	// Original : ahoj vývojári golang
    	// ToTitle : AHOJ VÝVOJÁRİ GOLANG
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Mar 04 15:54:40 GMT 2024
    - 15K bytes
    - Viewed (1)
  4. doc/go1.17_spec.html

    Redeclaration does not introduce a new variable; it just assigns a new value to the original.
    </p>
    
    <pre>
    field1, offset := nextField(str, 0)
    field2, offset := nextField(str, offset)  // redeclares offset
    a, a := 1, 2                              // illegal: double declaration of a or no new variable if a was declared elsewhere
    </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)
  5. doc/go_spec.html

    The non-blank variable names on the left side of <code>:=</code>
    must be <a href="#Uniqueness_of_identifiers">unique</a>.
    </p>
    
    <pre>
    field1, offset := nextField(str, 0)
    field2, offset := nextField(str, offset)  // redeclares offset
    x, y, x := 1, 2, 3                        // illegal: x repeated on left side of :=
    </pre>
    
    <p>
    Short variable declarations may appear only inside functions.
    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)
Back to top