Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for fileExtSplit (1.77 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)
Back to top