Skip to content

os: docs say nothing about path slash types #44274

@bradfitz

Description

@bradfitz

The os package docs say:

Package os provides a platform-independent interface to operating system functionality. The design is Unix-like, although the error handling is Go-like

But nowhere at https://golang.org/pkg/os/ is "slash" mentioned.

Yet there are two Go packages about paths and their slashes: path and path/filepath.

That quoted line above might suggest only forward slashes are permitted ("the design is Unix-like").

Seems like the os package should say what it permits. Users will wonder: forward only? host native only? either way?

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocumentationIssues describing a change to documentation.NeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions