Documentation ¶
Index ¶
Constants ¶
const CLIName = "eulercli"
CLIName - default name of the eulercli executable
const DefaultTemplatesDir = "eulercli-templates"
DefaultTemplatesDir - default relative path of the templates directory
const DirPerm = 0755
DirPerm - permissions used for created directories
const FilePerm = 0655
FilePerm - permissions used for created files
const MissingAnswerMD5 = "?"
MissingAnswerMD5 - string used whenever a hashed answer cannot be found
const SolutionsTextURL = "https://raw.githubusercontent.com/luckytoilet/projecteuler-solutions/master/Solutions.md"
SolutionsTextURL - URL of some problem solutions collected by LuckyToilet
const TempDirPath = "/tmp/eulercli"
TempDirPath - path of a directory used to store temporary files
const TemplRepoBranch = "main"
TemplRepoBranch - name of the template github master branch
const TemplRepoName = "eulercli-templates"
TemplRepoName - name of the template github repository
const TemplRepoOwner = "koomen"
TemplRepoOwner - owner of the template github repository
const ZippedRepoURL = "https://github.com/koomen/eulercli/archive/main.zip"
ZippedRepoURL - URL for downloading a zipped copy of the eulercli repo
Variables ¶
var ProblemsText string
ProblemsText - Embedded document with many Project Euler problems
Functions ¶
This section is empty.
Types ¶
type Correctness ¶
type Correctness int
Correctness - type representing three states of "correctness": correct, incorrect, and unknown
const ( // Correct - used when a submitted guess is correct Correct Correctness = 1 // Incorrect - used when a submitted guess is incorrect Incorrect Correctness = 0 // Unknown - used when we don't have an answer for a given problem Unknown Correctness = -1 )