Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for isBadEmbedName (0.1 sec)

  1. src/cmd/go/internal/load/pkg.go

    }
    
    func validEmbedPattern(pattern string) bool {
    	return pattern != "." && fs.ValidPath(pattern)
    }
    
    // isBadEmbedName reports whether name is the base name of a file that
    // can't or won't be included in modules and therefore shouldn't be treated
    // as existing for embedding.
    func isBadEmbedName(name string) bool {
    	if err := module.CheckFilePath(name); err != nil {
    		return true
    	}
    	switch name {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 28 17:00:51 UTC 2024
    - 120K bytes
    - Viewed (0)
Back to top