11 lines
165 B
Go
Executable File
11 lines
165 B
Go
Executable File
package utils
|
|
|
|
import (
|
|
"path/filepath"
|
|
"strings"
|
|
)
|
|
|
|
func FileBasename(path string) string {
|
|
return strings.TrimSuffix(filepath.Base(path), filepath.Ext(path))
|
|
}
|