Translation of https://github.com/glenwayguy/path_manager to Go