Documentation ¶
Index ¶
- func ConvertMemoryInMb(memory uint64) uint64
- func CreateDir(folderPath string) error
- func CreateFile(folderPath string, filename string) error
- func FilterHtml(src []byte) []byte
- func GetContestType(contestId string) string
- func GetContestUrl(cfg config.Configuration) string
- func GetFilenamesInDir(folderPath string) []string
- func GetProblemInfo(cfg config.Configuration, problemId string) (dto.Problem, error)
- func GetProblemUrl(cfg config.Configuration, problemId string) string
- func GetSourceDirPath(cfg config.Configuration) string
- func GetSourceFilePathWithExt(cfg config.Configuration, problemId string) string
- func GetSourceFilePathWithoutExt(cfg config.Configuration, problemId string) string
- func GetTestcaseDirPath(cfg config.Configuration) string
- func GetTestcaseFilePath(cfg config.Configuration, problemId string) string
- func IsDigit(r rune) bool
- func IsDirExist(folderPath string) bool
- func IsFileExist(filePath string) bool
- func OpenFile(filePath string) error
- func ParseCommand(s string) (res []string)
- func ParseContestAndProblemId(cmd string) (string, string, error)
- func ParseMemoryInKb(memory uint64) string
- func ParseMemoryInMb(memory uint64) string
- func ResolveTescasePath(cfg config.Configuration, problemId string) error
- func TrimIO(io string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertMemoryInMb ¶
func CreateFile ¶
func FilterHtml ¶
func GetContestType ¶
func GetContestUrl ¶
func GetContestUrl(cfg config.Configuration) string
func GetFilenamesInDir ¶
func GetProblemInfo ¶
func GetProblemUrl ¶
func GetProblemUrl(cfg config.Configuration, problemId string) string
func GetSourceDirPath ¶
func GetSourceDirPath(cfg config.Configuration) string
func GetSourceFilePathWithExt ¶
func GetSourceFilePathWithExt(cfg config.Configuration, problemId string) string
func GetSourceFilePathWithoutExt ¶
func GetSourceFilePathWithoutExt(cfg config.Configuration, problemId string) string
func GetTestcaseDirPath ¶
func GetTestcaseDirPath(cfg config.Configuration) string
func GetTestcaseFilePath ¶
func GetTestcaseFilePath(cfg config.Configuration, problemId string) string
func IsDirExist ¶
func IsFileExist ¶
func ParseCommand ¶
ParseCommand parses a command line and handle arguments in quotes. https://github.com/vrischmann/shlex/blob/master/shlex.go
func ParseMemoryInKb ¶
func ParseMemoryInMb ¶
func ResolveTescasePath ¶
func ResolveTescasePath(cfg config.Configuration, problemId string) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.