Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for isGoBinaryCandidate (0.22 sec)

  1. src/cmd/go/internal/version/version.go

    					fmt.Fprintf(os.Stderr, "%s: %v\n", path, err)
    				}
    				return nil
    			}
    			scanFile(path, info, *versionV)
    		}
    		return nil
    	})
    }
    
    // isGoBinaryCandidate reports whether the file is a candidate to be a Go binary.
    func isGoBinaryCandidate(file string, info fs.FileInfo) bool {
    	if info.Mode().IsRegular() && info.Mode()&0111 != 0 {
    		return true
    	}
    	name := strings.ToLower(file)
    	switch filepath.Ext(name) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 19:27:00 UTC 2023
    - 4.8K bytes
    - Viewed (0)
Back to top