Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ExampleRunes (0.17 sec)

  1. src/bytes/example_test.go

    	// moo moo moo
    }
    
    func ExampleReplaceAll() {
    	fmt.Printf("%s\n", bytes.ReplaceAll([]byte("oink oink oink"), []byte("oink"), []byte("moo")))
    	// Output:
    	// moo moo moo
    }
    
    func ExampleRunes() {
    	rs := bytes.Runes([]byte("go gopher"))
    	for _, r := range rs {
    		fmt.Printf("%#U\n", r)
    	}
    	// Output:
    	// U+0067 'g'
    	// U+006F 'o'
    	// U+0020 ' '
    	// U+0067 'g'
    	// U+006F 'o'
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Mar 04 15:54:40 GMT 2024
    - 15K bytes
    - Viewed (1)
Back to top