go/doc/next/6-stdlib/99-minor
Damien Neil e596e88318 path/filepath: add Localize
Add the Localize function, which takes an io/fs slash-separated path
and returns an operating system path.

Localize returns an error if the path cannot be represented on
the current platform.

Replace internal/safefile.FromFS with Localize,
which serves the same purpose as this function.

The internal/safefile package remains separate from path/filepath
to avoid a dependency cycle with the os package.

Fixes #57151

Change-Id: I75c88047ddea17808276761da07bf79172c4f6fc
Reviewed-on: https://go-review.googlesource.com/c/go/+/531677
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
2024-02-26 18:08:14 +00:00
..
net net/http: allow multiple spaces between method and path in mux patterns 2024-02-26 16:36:30 +00:00
os os: implement CopyFS 2024-02-23 00:19:54 +00:00
path/filepath path/filepath: add Localize 2024-02-26 18:08:14 +00:00
runtime/debug runtime/debug: SetCrashOutput sets the FD for fatal panics 2024-01-31 16:50:42 +00:00
sync doc/next: add release note for sync/Map.Clear 2024-02-07 21:04:18 +00:00
syscall cmd: don't require build tags in relnote pathnames 2024-02-23 18:08:27 +00:00
0-heading.md doc/next: initial contents 2024-01-24 16:44:53 +00:00
README doc/next: initial contents 2024-01-24 16:44:53 +00:00

API changes and other small changes to the standard library go here.