File Paths and Names in Go: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 4: Line 4:


=Overview=
=Overview=
<code>path</code> and <code>filepath</code> are two related packages that expose functions to use while manipulating forward-slash-separated paths (<code>path</code>) and filesystem paths that may include Windows-style backslashes and drive letters (<code>filepath</code>).
<code>path</code> and <code>filepath</code> are two related packages that expose functionality to manipulating forward-slash-separated paths (<code>[[#path|path]]</code>) and file names and filesystem paths that may include Windows-style backslashes and drive letters (<code>[[#filepath|filepath]]</code>).


=Packages=
=Packages=

Revision as of 22:30, 16 October 2023

Internal

Overview

path and filepath are two related packages that expose functionality to manipulating forward-slash-separated paths (path) and file names and filesystem paths that may include Windows-style backslashes and drive letters (filepath).

Packages

path

https://pkg.go.dev/path

filepath

https://pkg.go.dev/path/filepath