Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for firstComment (0.19 sec)

  1. src/go/types/stdlib_test.go

    	}
    	return fut.pkg, fut.err
    }
    
    // firstComment returns the contents of the first non-empty comment in
    // the given file, "skip", or the empty string. No matter the present
    // comments, if any of them contains a build tag, the result is always
    // "skip". Only comments before the "package" token and within the first
    // 4K of the file are considered.
    func firstComment(filename string) string {
    	f, err := os.Open(filename)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Dec 19 04:39:56 UTC 2023
    - 13.7K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/stdlib_test.go

    	}
    	return fut.pkg, fut.err
    }
    
    // firstComment returns the contents of the first non-empty comment in
    // the given file, "skip", or the empty string. No matter the present
    // comments, if any of them contains a build tag, the result is always
    // "skip". Only comments within the first 4K of the file are considered.
    // TODO(gri) should only read until we see "package" token.
    func firstComment(filename string) (first string) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:18:33 UTC 2024
    - 13.3K bytes
    - Viewed (0)
Back to top