code: func fileBase(filePath string) string {
  	fileName := path.Base(filePath)
  	fileExt := path.Ext(filePath)
  
  	return fileName[:len(fileName)-len(fileExt)]
  }
docs: // fileBase returns base file name
  //
  // example: /foo/bar/baz.png => baz