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.
ntool-biz/core/i18n/util.go

11 lines
183 B
Go

package i18n
import (
"git.noahlan.cn/noahlan/ntool/nfs"
"strings"
)
func filenameWithoutExt(path string) string {
return strings.ReplaceAll(nfs.Name(path), nfs.Ext(path), "")
}