Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for Example_trailingTab (0.15 sec)

  1. src/text/tabwriter/example_test.go

    	fmt.Fprintln(w, "aaa\t") // trailing tab
    	fmt.Fprintln(w, "aaaa\tdddd\teeee")
    	w.Flush()
    
    	// output:
    	// ....a|..b|c
    	// ...aa|.bb|cc
    	// ..aaa|
    	// .aaaa|.dddd|eeee
    }
    
    func Example_trailingTab() {
    	// Observe that the third line has no trailing tab,
    	// so its final cell is not part of an aligned column.
    	const padding = 3
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 23 22:09:32 UTC 2016
    - 2K bytes
    - Viewed (0)
Back to top