Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for gofmtFlags (1.57 sec)

  1. src/cmd/gofmt/gofmt_test.go

    	"testing"
    	"text/scanner"
    )
    
    var update = flag.Bool("update", false, "update .golden files")
    
    // gofmtFlags looks for a comment of the form
    //
    //	//gofmt flags
    //
    // within the first maxLines lines of the given file,
    // and returns the flags string, if any. Otherwise it
    // returns the empty string.
    func gofmtFlags(filename string, maxLines int) string {
    	f, err := os.Open(filename)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 10 19:22:49 UTC 2022
    - 4.3K bytes
    - Viewed (0)
Back to top