consts

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const CLIName = "eulercli"

CLIName - default name of the eulercli executable

View Source
const DefaultTemplatesDir = "eulercli-templates"

DefaultTemplatesDir - default relative path of the templates directory

View Source
const DirPerm = 0755

DirPerm - permissions used for created directories

View Source
const FilePerm = 0655

FilePerm - permissions used for created files

View Source
const MissingAnswerMD5 = "?"

MissingAnswerMD5 - string used whenever a hashed answer cannot be found

View Source
const SolutionsTextURL = "https://raw.githubusercontent.com/luckytoilet/projecteuler-solutions/master/Solutions.md"

SolutionsTextURL - URL of some problem solutions collected by LuckyToilet

View Source
const TempDirPath = "/tmp/eulercli"

TempDirPath - path of a directory used to store temporary files

View Source
const TemplRepoBranch = "main"

TemplRepoBranch - name of the template github master branch

View Source
const TemplRepoName = "eulercli-templates"

TemplRepoName - name of the template github repository

View Source
const TemplRepoOwner = "koomen"

TemplRepoOwner - owner of the template github repository

View Source
const ZippedRepoURL = "https://github.com/koomen/eulercli/archive/main.zip"

ZippedRepoURL - URL for downloading a zipped copy of the eulercli repo

Variables

View Source
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
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL