Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for fileExtSplit (0.56 sec)

  1. src/cmd/go/internal/work/build.go

    	return nil
    }
    
    func (f *buildvcsFlag) String() string { return string(*f) }
    
    // fileExtSplit expects a filename and returns the name
    // and ext (without the dot). If the file has no
    // extension, ext will be empty.
    func fileExtSplit(file string) (name, ext string) {
    	dotExt := filepath.Ext(file)
    	name = file[:len(file)-len(dotExt)]
    	if dotExt != "" {
    		ext = dotExt[1:]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 17:22:59 UTC 2024
    - 33.2K bytes
    - Viewed (0)
  2. src/cmd/go/internal/work/exec.go

    	// For example, defs_linux_amd64.h becomes defs_GOOS_GOARCH.h.
    	_goos_goarch := "_" + cfg.Goos + "_" + cfg.Goarch
    	_goos := "_" + cfg.Goos
    	_goarch := "_" + cfg.Goarch
    	for _, file := range p.HFiles {
    		name, ext := fileExtSplit(file)
    		switch {
    		case strings.HasSuffix(name, _goos_goarch):
    			targ := file[:len(name)-len(_goos_goarch)] + "_GOOS_GOARCH." + ext
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 14:46:37 UTC 2024
    - 105.6K bytes
    - Viewed (0)
Back to top