Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for isPkgFile (0.07 sec)

  1. test/stress/parsego.go

    	"path"
    	"runtime"
    	"strings"
    )
    
    func isGoFile(dir os.FileInfo) bool {
    	return !dir.IsDir() &&
    		!strings.HasPrefix(dir.Name(), ".") && // ignore .files
    		path.Ext(dir.Name()) == ".go"
    }
    
    func isPkgFile(dir os.FileInfo) bool {
    	return isGoFile(dir) &&
    		!strings.HasSuffix(dir.Name(), "_test.go") // ignore test files
    }
    
    func pkgName(filename string) string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 4.1K bytes
    - Viewed (0)
Back to top