package file import "strings" func format(name string) string { if p := strings.Split(name, "."); len(p) > 1 { return p[len(p)-1] } return "" }