github.com/mutagen-io/mutagen@v0.18.0-rc1/pkg/platform/executable_name.go (about)

     1  package platform
     2  
     3  // ExecutableName computes the name for an executable for a given base name on a
     4  // specified operating system.
     5  func ExecutableName(base, goos string) string {
     6  	// If we're on Windows, append ".exe".
     7  	if goos == "windows" {
     8  		return base + ".exe"
     9  	}
    10  
    11  	// Otherwise return the base name unmodified.
    12  	return base
    13  }