Skip to content

Commit 1fc5525

Browse files
authored
Add File Functions section to README template
1 parent ae1b2bf commit 1fc5525

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/templates/README.template.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
- [Getting Started](#getting-started)
1212
- [Usage](#usage)
13+
- [File Functions](#file-functions)
1314
- [String Functions](#string-functions)
1415
- [Container Functions](#container-functions)
1516
- [Parser Functions](#parser-functions)
@@ -44,11 +45,11 @@ Goplater uses Go's [builtin templating library](https://pkg.go.dev/text/template
4445
File Content: $​{​{​{ read "./myfile.txt" }​}​}
4546
```
4647

48+
### File Functions
49+
4750
As you saw in the example above `read` is used for reading and output file contents.
4851
But there are more as you will see in the following…
4952

50-
### String Functions
51-
5253
#### `read`
5354

5455
Reads from absolute or relative file path (depending on input),
@@ -78,6 +79,8 @@ Performs a get http request to the specified url.
7879
fetch "url"
7980
```
8081

82+
### String Functions
83+
8184
#### `trim`
8285

8386
Outputs trimmed string.

0 commit comments

Comments
 (0)