-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Gerenation of a given amount of quizzes
- Loading branch information
1 parent
1b4a5c0
commit 4f4296a
Showing
3 changed files
with
84 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,18 @@ | ||
package countries | ||
|
||
const flagImageUrl string = "https://flagcdn.com/w320/" | ||
const flagImageFormat string = ".png" | ||
const maxVariantsCount = 6 | ||
const minVariantsCount = 2 | ||
// app constant | ||
const ( | ||
flagImageUrl string = "https://flagcdn.com/w320/" | ||
flagImageFormat string = ".png" | ||
maxVariantsCount int = 6 | ||
minVariantsCount int = 2 | ||
maxQuizAmount int = 20 | ||
) | ||
|
||
// error constants | ||
// error constant | ||
const ( | ||
variantsCountToBig string = "the number of variants is too large" | ||
variantsCountToLow string = "the number of variants is too small" | ||
variantsCountToBig string = "the maximum number of variants should not exceed 6" | ||
variantsCountToSmall string = "the number of variants should not be less than 2" | ||
quizAmountToBig string = "the maximum value of amount should not exceed 20" | ||
quizAmountToSmall string = "the value of amount should be positive" | ||
) |
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