mirror of
https://codeberg.org/video-prize-ranch/rimgo.git
synced 2026-02-03 20:26:30 +00:00
9 lines
158 B
Go
9 lines
158 B
Go
package utils
|
|
|
|
import "path/filepath"
|
|
|
|
func SplitNameExt(path string) (name, ext string) {
|
|
ext = filepath.Ext(path)
|
|
return path[:len(path)-len(ext)], ext
|
|
}
|