summaryrefslogtreecommitdiffstats
path: root/docs/content/en/functions/os/ReadDir.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/content/en/functions/os/ReadDir.md')
-rw-r--r--docs/content/en/functions/os/ReadDir.md23
1 files changed, 9 insertions, 14 deletions
diff --git a/docs/content/en/functions/os/ReadDir.md b/docs/content/en/functions/os/ReadDir.md
index d0ed87bdf..63af850b7 100644
--- a/docs/content/en/functions/os/ReadDir.md
+++ b/docs/content/en/functions/os/ReadDir.md
@@ -1,22 +1,17 @@
---
title: os.ReadDir
-linkTitle: readDir
description: Returns an array of FileInfo structures sorted by file name, one element for each directory entry.
-categories: [functions]
+categories: []
keywords: []
-menu:
- docs:
- parent: functions
-function:
+action:
aliases: [readDir]
- returnType: FileInfo
+ related:
+ - functions/os/FileExists
+ - functions/os/Getenv
+ - functions/os/ReadFile
+ - functions/os/Stat
+ returnType: os.FileInfo
signatures: [os.ReadDir PATH]
-relatedFunctions:
- - os.FileExists
- - os.Getenv
- - os.ReadDir
- - os.ReadFile
- - os.Stat
aliases: [/functions/readdir]
---
@@ -36,7 +31,7 @@ content/
This template code:
```go-html-template
-{{ range os.ReadDir "content" }}
+{{ range readDir "content" }}
{{ .Name }} → {{ .IsDir }}
{{ end }}
```