-
Notifications
You must be signed in to change notification settings - Fork 0
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
daniel rivera
authored and
daniel rivera
committed
Apr 29, 2024
1 parent
e8b2381
commit dc57ce2
Showing
6 changed files
with
107 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package common | ||
|
||
// Common errors | ||
var ( | ||
Currencies = []string{"EUR", "USD", "JPY", "CAD", "GBP", "TRY"} | ||
Products = []string{ | ||
"0PUK6V6EV0", | ||
"1YMWWN1N4O", | ||
"2ZYFJ3GM2N", | ||
"66VCHSJNUP", | ||
"6E92ZMYYFZ", | ||
"9SIQT8TOJO", | ||
"L9ECAV7KIM", | ||
"LS4PSXUNUM", | ||
"OLJCESPC7Z", | ||
} | ||
) |
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package utils | ||
|
||
import "math/rand" | ||
|
||
func PickupRandom(list []string) string { | ||
return list[rand.Intn(len(list))] | ||
} |