You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
183 B
Go
11 lines
183 B
Go
2 years ago
|
package i18n
|
||
|
|
||
|
import (
|
||
|
"git.noahlan.cn/noahlan/ntool/nfs"
|
||
|
"strings"
|
||
|
)
|
||
|
|
||
|
func filenameWithoutExt(path string) string {
|
||
|
return strings.ReplaceAll(nfs.Name(path), nfs.Ext(path), "")
|
||
|
}
|