Files
rimgo/utils/splitNameExt.go
2026-01-31 05:19:02 +01:00

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
}