-
-
Notifications
You must be signed in to change notification settings - Fork 269
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
20 changed files
with
270 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -500,12 +500,10 @@ func addGenerateLookup() { | |
Display: "Fixed Width", | ||
Category: "generate", | ||
Description: "Generates fixed width output", | ||
Example: ` | ||
Name Email Password Age | ||
Markus Moen [email protected] 6VlvH6qqXc7g 13 | ||
Alayna Wuckert [email protected] g7sLrS0gEwLO 46 | ||
Lura Lockman [email protected] S8gV7Z64KlHG 12 | ||
`, | ||
Example: `Name Email Password Age | ||
Markus Moen [email protected] 6VlvH6qqXc7g 13 | ||
Alayna Wuckert [email protected] g7sLrS0gEwLO 46 | ||
Lura Lockman [email protected] S8gV7Z64KlHG 12`, | ||
Output: "[]byte", | ||
ContentType: "text/plain", | ||
Params: []Param{ | ||
|
@@ -575,7 +573,13 @@ func addGenerateLookup() { | |
Display: "Map", | ||
Category: "generate", | ||
Description: "Random map of generated data", | ||
Example: `map[consult:respond context:9285735]`, | ||
Example: `{ | ||
"software": 7518355, | ||
"that": ["despite", "pack", "whereas", "recently", "there", "anyone", "time", "read"], | ||
"use": 683598, | ||
"whom": "innovate", | ||
"yourselves": 1987784 | ||
}`, | ||
Output: "map[string]any", | ||
ContentType: "application/json", | ||
Generate: func(r *rand.Rand, m *MapParams, info *Info) (any, error) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -211,39 +211,39 @@ func addPersonLookup() { | |
Category: "person", | ||
Description: "Random set of person info", | ||
Example: `{ | ||
"first_name": "Markus", | ||
"last_name": "Moen", | ||
"gender": "male", | ||
"ssn": "275413589", | ||
"image": "https://picsum.photos/208/500", | ||
"hobby": "Lacrosse", | ||
"job": { | ||
"company": "Intermap Technologies", | ||
"title": "Developer", | ||
"descriptor": "Direct", | ||
"level": "Paradigm" | ||
}, | ||
"address": { | ||
"address": "369 North Cornerbury, Miami, North Dakota 24259", | ||
"street": "369 North Cornerbury", | ||
"city": "Miami", | ||
"state": "North Dakota", | ||
"zip": "24259", | ||
"country": "Ghana", | ||
"latitude": -6.662595, | ||
"longitude": 23.921575 | ||
}, | ||
"contact": { | ||
"phone": "3023202027", | ||
"email": "[email protected]" | ||
}, | ||
"credit_card": { | ||
"type": "Maestro", | ||
"number": "39800889982276", | ||
"exp": "01/29", | ||
"cvv": "932" | ||
} | ||
}`, | ||
"first_name": "Markus", | ||
"last_name": "Moen", | ||
"gender": "male", | ||
"ssn": "275413589", | ||
"image": "https://picsum.photos/208/500", | ||
"hobby": "Lacrosse", | ||
"job": { | ||
"company": "Intermap Technologies", | ||
"title": "Developer", | ||
"descriptor": "Direct", | ||
"level": "Paradigm" | ||
}, | ||
"address": { | ||
"address": "369 North Cornerbury, Miami, North Dakota 24259", | ||
"street": "369 North Cornerbury", | ||
"city": "Miami", | ||
"state": "North Dakota", | ||
"zip": "24259", | ||
"country": "Ghana", | ||
"latitude": -6.662595, | ||
"longitude": 23.921575 | ||
}, | ||
"contact": { | ||
"phone": "3023202027", | ||
"email": "[email protected]" | ||
}, | ||
"credit_card": { | ||
"type": "Maestro", | ||
"number": "39800889982276", | ||
"exp": "01/29", | ||
"cvv": "932" | ||
} | ||
}`, | ||
Output: "map[string]any", | ||
ContentType: "application/json", | ||
Generate: func(r *rand.Rand, m *MapParams, info *Info) (any, error) { | ||
|
@@ -388,21 +388,21 @@ func addPersonLookup() { | |
Category: "person", | ||
Description: "Randomly split people into teams", | ||
Example: `{ | ||
"Team 1": [ | ||
"Justin", | ||
"Connor", | ||
"Jeff" | ||
], | ||
"Team 2": [ | ||
"Sharon", | ||
"Fabian", | ||
"Billy" | ||
], | ||
"Team 3": [ | ||
"Steve", | ||
"Robert" | ||
] | ||
}`, | ||
"Team 1": [ | ||
"Justin", | ||
"Connor", | ||
"Jeff" | ||
], | ||
"Team 2": [ | ||
"Sharon", | ||
"Fabian", | ||
"Billy" | ||
], | ||
"Team 3": [ | ||
"Steve", | ||
"Robert" | ||
] | ||
}`, | ||
Output: "map[string][]string", | ||
ContentType: "application/json", | ||
Params: []Param{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.