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

improve string descs #324

Merged
merged 1 commit into from Jan 17, 2024
Merged
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
12 changes: 6 additions & 6 deletions string.go
Expand Up @@ -123,7 +123,7 @@ func addStringLookup() {
AddFuncLookup("letter", Info{
Display: "Letter",
Category: "string",
Description: "Generate a single random lower case ASCII letter",
Description: "Character or symbol from the American Standard Code for Information Interchange (ASCII) character set",
Example: "g",
Output: "string",
Generate: func(r *rand.Rand, m *MapParams, info *Info) (any, error) {
Expand All @@ -134,7 +134,7 @@ func addStringLookup() {
AddFuncLookup("lettern", Info{
Display: "LetterN",
Category: "string",
Description: "Generate a random ASCII string with length N",
Description: "ASCII string with length N",
Example: "gbRMaRxHki",
Output: "string",
Params: []Param{
Expand All @@ -153,7 +153,7 @@ func addStringLookup() {
AddFuncLookup("vowel", Info{
Display: "Vowel",
Category: "string",
Description: "Generate a single random lower case vowel",
Description: "Speech sound produced with an open vocal tract",
Example: "a",
Output: "string",
Generate: func(r *rand.Rand, m *MapParams, info *Info) (any, error) {
Expand All @@ -164,7 +164,7 @@ func addStringLookup() {
AddFuncLookup("digit", Info{
Display: "Digit",
Category: "string",
Description: "Generate a single ASCII digit",
Description: "Numerical symbol used to represent numbers",
Example: "0",
Output: "string",
Generate: func(r *rand.Rand, m *MapParams, info *Info) (any, error) {
Expand All @@ -175,7 +175,7 @@ func addStringLookup() {
AddFuncLookup("digitn", Info{
Display: "DigitN",
Category: "string",
Description: "Generate a random string of length N consists of ASCII digits",
Description: "string of length N consisting of ASCII digits",
Example: "0136459948",
Output: "string",
Params: []Param{
Expand Down Expand Up @@ -254,7 +254,7 @@ func addStringLookup() {
AddFuncLookup("randomstring", Info{
Display: "Random String",
Category: "string",
Description: "Randomly grab one string from array",
Description: "Return a random string from a string array",
Example: "hello,world,whats,up => world",
Output: "[]string",
Params: []Param{
Expand Down