Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for pkgFilenames (0.11 sec)

  1. src/cmd/compile/internal/types2/stdlib_test.go

    			} else {
    				return nil, fmt.Errorf("%s: user-defined object without package: %s", posn, obj)
    			}
    		}
    	}
    
    	return pkg, nil
    }
    
    // pkgFilenames returns the list of package filenames for the given directory.
    func pkgFilenames(dir string, includeTest bool) ([]string, error) {
    	ctxt := build.Default
    	ctxt.CgoEnabled = false
    	pkg, err := ctxt.ImportDir(dir, 0)
    	if err != nil {
    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