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

Number descs #318

Merged
merged 2 commits into from Jan 16, 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
44 changes: 22 additions & 22 deletions number.go
Expand Up @@ -253,7 +253,7 @@ func addNumberLookup() {
AddFuncLookup("number", Info{
Display: "Number",
Category: "number",
Description: "Random number between given range",
Description: "Mathematical concept used for counting, measuring, and expressing quantities or values",
Example: "14866",
Output: "int",
Params: []Param{
Expand All @@ -278,7 +278,7 @@ func addNumberLookup() {
AddFuncLookup("uint8", Info{
Display: "Uint8",
Category: "number",
Description: "Random uint8 value",
Description: "Unsigned 8-bit integer, capable of representing values from 0 to 255",
Example: "152",
Output: "uint8",
Generate: func(r *rand.Rand, m *MapParams, info *Info) (any, error) {
Expand All @@ -289,7 +289,7 @@ func addNumberLookup() {
AddFuncLookup("uint16", Info{
Display: "Uint16",
Category: "number",
Description: "Random uint16 value",
Description: "Unsigned 16-bit integer, capable of representing values from 0 to 65,535",
Example: "34968",
Output: "uint16",
Generate: func(r *rand.Rand, m *MapParams, info *Info) (any, error) {
Expand All @@ -300,7 +300,7 @@ func addNumberLookup() {
AddFuncLookup("uint32", Info{
Display: "Uint32",
Category: "number",
Description: "Random uint32 value",
Description: "Unsigned 32-bit integer, capable of representing values from 0 to 4,294,967,295",
Example: "1075055705",
Output: "uint32",
Generate: func(r *rand.Rand, m *MapParams, info *Info) (any, error) {
Expand All @@ -311,7 +311,7 @@ func addNumberLookup() {
AddFuncLookup("uint64", Info{
Display: "Uint64",
Category: "number",
Description: "Random uint64 value",
Description: "Unsigned 64-bit integer, capable of representing values from 0 to 18,446,744,073,709,551,615",
Example: "843730692693298265",
Output: "uint64",
Generate: func(r *rand.Rand, m *MapParams, info *Info) (any, error) {
Expand All @@ -322,7 +322,7 @@ func addNumberLookup() {
AddFuncLookup("uintrange", Info{
Display: "UintRange",
Category: "number",
Description: "Random uint value between given range",
Description: "Non-negative integer value between given range",
Example: "1075055705",
Output: "uint",
Params: []Param{
Expand All @@ -347,7 +347,7 @@ func addNumberLookup() {
AddFuncLookup("int8", Info{
Display: "Int8",
Category: "number",
Description: "Random int8 value",
Description: "Signed 8-bit integer, capable of representing values from -128 to 127",
Example: "24",
Output: "int8",
Generate: func(r *rand.Rand, m *MapParams, info *Info) (any, error) {
Expand All @@ -358,7 +358,7 @@ func addNumberLookup() {
AddFuncLookup("int16", Info{
Display: "Int16",
Category: "number",
Description: "Random int16 value",
Description: "Signed 16-bit integer, capable of representing values from 32,768 to 32,767",
Example: "2200",
Output: "int16",
Generate: func(r *rand.Rand, m *MapParams, info *Info) (any, error) {
Expand All @@ -369,7 +369,7 @@ func addNumberLookup() {
AddFuncLookup("int32", Info{
Display: "Int32",
Category: "number",
Description: "Random int32 value",
Description: "Signed 32-bit integer, capable of representing values from -2,147,483,648 to 2,147,483,647",
Example: "-1072427943",
Output: "int32",
Generate: func(r *rand.Rand, m *MapParams, info *Info) (any, error) {
Expand All @@ -380,7 +380,7 @@ func addNumberLookup() {
AddFuncLookup("int64", Info{
Display: "Int64",
Category: "number",
Description: "Random int64 value",
Description: "Signed 64-bit integer, capable of representing values from -9,223,372,036,854,775,808 to -9,223,372,036,854,775,807",
Example: "-8379641344161477543",
Output: "int64",
Generate: func(r *rand.Rand, m *MapParams, info *Info) (any, error) {
Expand All @@ -391,7 +391,7 @@ func addNumberLookup() {
AddFuncLookup("intrange", Info{
Display: "IntRange",
Category: "number",
Description: "Random int value between min and max",
Description: "Integer value between given range",
Example: "-8379477543",
Output: "int",
Params: []Param{
Expand All @@ -416,7 +416,7 @@ func addNumberLookup() {
AddFuncLookup("float32", Info{
Display: "Float32",
Category: "number",
Description: "Random float32 value",
Description: "Data type representing floating-point numbers with 32 bits of precision in computing",
Example: "3.1128167e+37",
Output: "float32",
Generate: func(r *rand.Rand, m *MapParams, info *Info) (any, error) {
Expand All @@ -427,7 +427,7 @@ func addNumberLookup() {
AddFuncLookup("float32range", Info{
Display: "Float32 Range",
Category: "number",
Description: "Random float32 between given range",
Description: "Float32 value between given range",
Example: "914774.6",
Output: "float32",
Params: []Param{
Expand All @@ -452,7 +452,7 @@ func addNumberLookup() {
AddFuncLookup("float64", Info{
Display: "Float64",
Category: "number",
Description: "Random float64 value",
Description: "Data type representing floating-point numbers with 64 bits of precision in computing",
Example: "1.644484108270445e+307",
Output: "float64",
Generate: func(r *rand.Rand, m *MapParams, info *Info) (any, error) {
Expand All @@ -463,7 +463,7 @@ func addNumberLookup() {
AddFuncLookup("float64range", Info{
Display: "Float64 Range",
Category: "number",
Description: "Random float64 between given range",
Description: "Float64 value between given range",
Example: "914774.5585333086",
Output: "float64",
Params: []Param{
Expand All @@ -488,7 +488,7 @@ func addNumberLookup() {
AddFuncLookup("shuffleints", Info{
Display: "Shuffle Ints",
Category: "number",
Description: "Shuffle an array of ints",
Description: "Shuffles an array of ints",
Example: "1,2,3,4 => 3,1,4,2",
Output: "[]int",
Params: []Param{
Expand Down Expand Up @@ -547,7 +547,7 @@ func addNumberLookup() {
AddFuncLookup("hexuint8", Info{
Display: "HexUint8",
Category: "number",
Description: "Random uint8 hex value",
Description: "Hexadecimal representation of an 8-bit unsigned integer",
Example: "0x87",
Output: "string",
Generate: func(r *rand.Rand, m *MapParams, info *Info) (any, error) {
Expand All @@ -558,7 +558,7 @@ func addNumberLookup() {
AddFuncLookup("hexuint16", Info{
Display: "HexUint16",
Category: "number",
Description: "Random uint16 hex value",
Description: "Hexadecimal representation of an 16-bit unsigned integer",
Example: "0x8754",
Output: "string",
Generate: func(r *rand.Rand, m *MapParams, info *Info) (any, error) {
Expand All @@ -569,7 +569,7 @@ func addNumberLookup() {
AddFuncLookup("hexuint32", Info{
Display: "HexUint32",
Category: "number",
Description: "Random uint32 hex value",
Description: "Hexadecimal representation of an 32-bit unsigned integer",
Example: "0x87546957",
Output: "string",
Generate: func(r *rand.Rand, m *MapParams, info *Info) (any, error) {
Expand All @@ -580,7 +580,7 @@ func addNumberLookup() {
AddFuncLookup("hexuint64", Info{
Display: "HexUint64",
Category: "number",
Description: "Random uint64 hex value",
Description: "Hexadecimal representation of an 64-bit unsigned integer",
Example: "0x875469578e51b5e5",
Output: "string",
Generate: func(r *rand.Rand, m *MapParams, info *Info) (any, error) {
Expand All @@ -591,7 +591,7 @@ func addNumberLookup() {
AddFuncLookup("hexuint128", Info{
Display: "HexUint128",
Category: "number",
Description: "Random uint128 hex value",
Description: "Hexadecimal representation of an 128-bit unsigned integer",
Example: "0x875469578e51b5e56c95b64681d147a1",
Output: "string",
Generate: func(r *rand.Rand, m *MapParams, info *Info) (any, error) {
Expand All @@ -602,7 +602,7 @@ func addNumberLookup() {
AddFuncLookup("hexuint256", Info{
Display: "HexUint256",
Category: "number",
Description: "Random uint256 hex value",
Description: "Hexadecimal representation of an 256-bit unsigned integer",
Example: "0x875469578e51b5e56c95b64681d147a12cde48a4f417231b0c486abbc263e48d",
Output: "string",
Generate: func(r *rand.Rand, m *MapParams, info *Info) (any, error) {
Expand Down