Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improving function signatures (#98) #1914

Merged
merged 1 commit into from Nov 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion content/en/functions/chomp.md
Expand Up @@ -10,7 +10,9 @@ menu:
docs:
parent: "functions"
keywords: [trim]
signature: ["chomp INPUT"]
signature:
- "chomp INPUT"
- "strings.Chomp INPUT"
workson: []
hugoversion:
relatedfuncs: [truncate]
Expand Down
4 changes: 3 additions & 1 deletion content/en/functions/countrunes.md
Expand Up @@ -9,7 +9,9 @@ menu:
docs:
parent: "functions"
keywords: [counting, word count]
signature: ["countrunes INPUT"]
signature:
- "countrunes INPUT"
- "strings.CountRunes INPUT"
workson: []
hugoversion:
relatedfuncs: []
Expand Down
4 changes: 3 additions & 1 deletion content/en/functions/dateformat.md
Expand Up @@ -9,7 +9,9 @@ menu:
docs:
parent: "functions"
keywords: [dates,time,strings]
signature: ["time.Format LAYOUT INPUT"]
signature:
- "time.Format LAYOUT INPUT"
- "dateFormat LAYOUT INPUT"
workson: []
hugoversion:
relatedfuncs: [Format,now,Unix,time]
Expand Down
2 changes: 1 addition & 1 deletion content/en/functions/emojify.md
Expand Up @@ -16,7 +16,7 @@ relatedfuncs: []
deprecated: false
---

`emoji` runs a passed string through the Emoji emoticons processor.
`emojify` runs a passed string through the Emoji emoticons processor.

See the [Emoji cheat sheet][emojis] for available emoticons.

Expand Down
5 changes: 4 additions & 1 deletion content/en/functions/i18n.md
Expand Up @@ -10,7 +10,10 @@ menu:
docs:
parent: "functions"
keywords: [internationalization,i18n,multilingual]
signature: ["i18n KEY", "T KEY"]
signature:
- "i18n KEY"
- "T KEY"
- "lang.Translate KEY"
workson: []
hugoversion:
relatedfuncs: []
Expand Down
4 changes: 3 additions & 1 deletion content/en/functions/replace.md
Expand Up @@ -9,7 +9,9 @@ menu:
docs:
parent: "functions"
keywords: [replace]
signature: ["strings.Replace INPUT OLD NEW [LIMIT]", "replace INPUT OLD NEW [LIMIT]"]
signature:
- "replace INPUT OLD NEW [LIMIT]"
- "strings.Replace INPUT OLD NEW [LIMIT]"
workson: []
hugoversion:
relatedfuncs: [replaceRE]
Expand Down
4 changes: 3 additions & 1 deletion content/en/functions/slicestr.md
Expand Up @@ -10,7 +10,9 @@ menu:
docs:
parent: "functions"
keywords: [strings]
signature: ["slicestr STRING START [END]"]
signature:
- "slicestr STRING START [END]"
- "strings.SliceStr STRING START [END]"
deining marked this conversation as resolved.
Show resolved Hide resolved
workson: []
hugoversion:
relatedfuncs: []
Expand Down
4 changes: 3 additions & 1 deletion content/en/functions/substr.md
Expand Up @@ -11,7 +11,9 @@ menu:
parent: "functions"
keywords: [strings]
aliases: []
signature: ["substr STRING START [LENGTH]"]
signature:
- "substr STRING START [LENGTH]"
- "strings.Substr STRING START [LENGTH]"
workson: []
hugoversion:
relatedfuncs: []
Expand Down
4 changes: 3 additions & 1 deletion content/en/functions/title.md
Expand Up @@ -10,7 +10,9 @@ menu:
docs:
parent: "functions"
keywords: [strings]
signature: ["title INPUT"]
signature:
- "title INPUT"
- "strings.Title INPUT"
workson: []
hugoversion:
relatedfuncs: []
Expand Down
4 changes: 3 additions & 1 deletion content/en/functions/trim.md
Expand Up @@ -10,7 +10,9 @@ menu:
docs:
parent: "functions"
keywords: [strings]
signature: ["trim INPUT CUTSET"]
signature:
- "trim INPUT CUTSET"
- "strings.Trim INPUT CUTSET"
workson: []
hugoversion:
relatedfuncs: []
Expand Down
6 changes: 5 additions & 1 deletion content/en/functions/truncate.md
Expand Up @@ -10,7 +10,11 @@ menu:
docs:
parent: "functions"
keywords: [strings]
signature: ["truncate SIZE INPUT", "truncate SIZE ELLIPSIS INPUT"]
signature:
- "truncate SIZE INPUT"
deining marked this conversation as resolved.
Show resolved Hide resolved
- "strings.Truncate SIZE ELLIPSIS INPUT"
deining marked this conversation as resolved.
Show resolved Hide resolved
- "truncate SIZE INPUT"
deining marked this conversation as resolved.
Show resolved Hide resolved
- "strings.Truncate SIZE ELLIPSIS INPUT"
deining marked this conversation as resolved.
Show resolved Hide resolved
workson: []
hugoversion: 19
relatedfuncs: []
Expand Down