code: func hasTrailingPathSeparator(path string, sep byte) bool {
  	return len(path) > 0 && path[len(path)-1] == sep
  }
docs: // hasTrailingPathSeparator returns whether the given
  // path ends with the system's path separator character.