Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for goDirFiles (0.14 sec)

  1. src/cmd/internal/testdir/testdir_test.go

    	return filepath.Join(t.dir, t.goFile)
    }
    
    func (t test) goDirName() string {
    	return filepath.Join(t.dir, strings.Replace(t.goFile, ".go", ".dir", -1))
    }
    
    // goDirFiles returns .go files in dir.
    func goDirFiles(dir string) (filter []fs.DirEntry, _ error) {
    	files, err := os.ReadDir(dir)
    	if err != nil {
    		return nil, err
    	}
    	for _, goFile := range files {
    		if filepath.Ext(goFile.Name()) == ".go" {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 20:08:06 UTC 2024
    - 57.5K bytes
    - Viewed (0)
Back to top