Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for Ya (0.14 sec)

  1. src/bytes/example_test.go

    	// -gopher
    	// go-gopher!
    	// go-gopher!567
    }
    
    func ExampleTrimPrefix() {
    	var b = []byte("Goodbye,, world!")
    	b = bytes.TrimPrefix(b, []byte("Goodbye,"))
    	b = bytes.TrimPrefix(b, []byte("See ya,"))
    	fmt.Printf("Hello%s", b)
    	// Output: Hello, world!
    }
    
    func ExampleTrimSpace() {
    	fmt.Printf("%s", bytes.TrimSpace([]byte(" \t\n a lone gopher \n\t\r\n")))
    	// Output: a lone gopher
    }
    
    Go
    - Registered: Tue Apr 23 11:13:09 GMT 2024
    - Last Modified: Mon Mar 04 15:54:40 GMT 2024
    - 15K bytes
    - Viewed (1)
Back to top