Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for splitGoBuild (0.23 sec)

  1. src/go/build/constraint/expr.go

    func IsGoBuild(line string) bool {
    	_, ok := splitGoBuild(line)
    	return ok
    }
    
    // splitGoBuild splits apart the leading //go:build prefix in line from the build expression itself.
    // It returns "", false if the input is not a //go:build line or if the input contains multiple lines.
    func splitGoBuild(line string) (expr string, ok bool) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 14.2K bytes
    - Viewed (0)
Back to top