まぁ、自分で書いても数行なんですけどね
without.go
func withoutExt(fname string) string {
	ext := filepath.Ext(fname)
	return fname[:len(fname)-len(ext)]
}
Go to list of users who liked
Share on X(Twitter)
Share on Facebook
More than 5 years have passed since last update.
まぁ、自分で書いても数行なんですけどね
func withoutExt(fname string) string {
	ext := filepath.Ext(fname)
	return fname[:len(fname)-len(ext)]
}
Register as a new user and use Qiita more conveniently
Go to list of users who liked