Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for comma (0.14 sec)

  1. src/bufio/example_test.go

    }
    
    // Use a Scanner with a custom split function to parse a comma-separated
    // list with an empty final value.
    func ExampleScanner_emptyFinalToken() {
    	// Comma-separated list; last entry is empty.
    	const input = "1,2,3,4,"
    	scanner := bufio.NewScanner(strings.NewReader(input))
    	// Define a split function that separates on commas.
    	onComma := func(data []byte, atEOF bool) (advance int, token []byte, err error) {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Oct 23 09:06:30 GMT 2023
    - 4.9K bytes
    - Viewed (0)
  2. src/cmd/asm/internal/asm/testdata/mips.s

    	//
    	WORD	$1
    
    	//
    	// NOP
    	//
    	//	LNOP comma // asm doesn't support the trailing comma.
    	//	{
    	//		outcode(int($1), &nullgen, 0, &nullgen);
    	//	}
    	NOP
    
    	//	LNOP rreg comma // asm doesn't support the trailing comma.
    	//	{
    	//		outcode(int($1), &$2, 0, &nullgen);
    	//	}
    	NOP	R2
    
    	//	LNOP freg comma // asm doesn't support the trailing comma.
    	//	{
    	//		outcode(int($1), &$2, 0, &nullgen);
    	//	}
    Others
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 08 12:17:12 GMT 2023
    - 6.7K bytes
    - Viewed (0)
Back to top