func getSuffix(fileName string) string { regex := `\.[^\.]*$` re, _ := regexp.Compile(regex) return re.FindString(fileName) }