package main import ( "path/filepath" ) func fileNameWithoutPath(fileName string) string { return filepath.Base(fileName) }