Skip to content

Commit

Permalink
_content/doc/go1.24: tweak os.Root section
Browse files Browse the repository at this point in the history
Currently, this section links to four methods of os.Root in some
detail, without making it clear why it's linking to these methods or
that this is just a subset of the methods on os.Root. Clarify that the
methods of os.Root generally mirror the whole os file system API and
that we're linking to just a few supporting examples.

Change-Id: I8efb20a9b3946eb32d5695d9d955f8780e059c84
Reviewed-on: https://go-review.googlesource.com/c/website/+/638562
LUCI-TryBot-Result: Go LUCI <[email protected]>
Reviewed-by: Ian Lance Taylor <[email protected]>
Reviewed-by: Damien Neil <[email protected]>
  • Loading branch information
aclements committed Jan 2, 2025
1 parent b33ba0b commit 595111e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions _content/doc/go1.24.md
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,11 @@ The [`os.OpenRoot`](/pkg/os#OpenRoot) function opens a directory and returns an
Methods on [`os.Root`](/pkg/os#Root) operate within the directory and do not permit
paths that refer to locations outside the directory, including
ones that follow symbolic links out of the directory.

- [`os.Root.Open`](/pkg/os#Root.Open) opens a file for reading.
- [`os.Root.Create`](/pkg/os#Root.Create) creates a file.
- [`os.Root.OpenFile`](/pkg/os#Root.OpenFile) is the generalized open call.
- [`os.Root.Mkdir`](/pkg/os#Root.Mkdir) creates a directory.
The methods on `os.Root` mirror most of the file system operations available in the
`os` package, including for example [`os.Root.Open`](/pkg/os#Root.Open),
[`os.Root.Create`](/pkg/os#Root.Create),
[`os.Root.Mkdir`](/pkg/os#Root.Mkdir),
and [`os.Root.Stat`](/pkg/os#Root.Stat),

### New benchmark function

Expand Down

0 comments on commit 595111e

Please sign in to comment.