Improving function signatures (#1914)

Closes #98.
This commit is contained in:
Andreas Deininger
2022-11-23 20:37:51 +01:00
committed by GitHub
parent b715e84073
commit 656dc72ba8
11 changed files with 34 additions and 11 deletions
+3 -1
View File
@@ -10,7 +10,9 @@ menu:
docs:
parent: "functions"
keywords: [trim]
signature: ["chomp INPUT"]
signature:
- "chomp INPUT"
- "strings.Chomp INPUT"
workson: []
hugoversion:
relatedfuncs: [truncate]
+3 -1
View File
@@ -9,7 +9,9 @@ menu:
docs:
parent: "functions"
keywords: [counting, word count]
signature: ["countrunes INPUT"]
signature:
- "countrunes INPUT"
- "strings.CountRunes INPUT"
workson: []
hugoversion:
relatedfuncs: []
+3 -1
View File
@@ -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]
+1 -1
View File
@@ -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.
+4 -1
View File
@@ -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: []
+3 -1
View File
@@ -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]
+3 -1
View File
@@ -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]"
workson: []
hugoversion:
relatedfuncs: []
+3 -1
View File
@@ -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: []
+3 -1
View File
@@ -10,7 +10,9 @@ menu:
docs:
parent: "functions"
keywords: [strings]
signature: ["title INPUT"]
signature:
- "title INPUT"
- "strings.Title INPUT"
workson: []
hugoversion:
relatedfuncs: []
+3 -1
View File
@@ -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: []
+5 -1
View File
@@ -10,7 +10,11 @@ menu:
docs:
parent: "functions"
keywords: [strings]
signature: ["truncate SIZE INPUT", "truncate SIZE ELLIPSIS INPUT"]
signature:
- "truncate SIZE INPUT"
- "strings.Truncate SIZE ELLIPSIS INPUT"
- "truncate SIZE INPUT"
- "strings.Truncate SIZE ELLIPSIS INPUT"
workson: []
hugoversion: 19
relatedfuncs: []