constant

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RatedTypeStrings

func RatedTypeStrings() []string

RatedTypeStrings returns a slice of all String values of the enum

Types

type ContestCategory

type ContestCategory int
const (
	CategoryTypical       ContestCategory = 6
	CategoryPAST          ContestCategory = 50
	CategoryDailyTraining ContestCategory = 60
	CategoryUnrated       ContestCategory = 101
	CategoryJOI           ContestCategory = 200
	CategoryEPFinal       ContestCategory = 1000
	CategoryEPOpenRated   ContestCategory = 1001
	CategoryEPOpenUnrated ContestCategory = 1002
	CategoryEPABC         ContestCategory = 1005
	CategoryEPARC         ContestCategory = 1004
	CategoryHeuristic     ContestCategory = 1200
	CategoryEPHeuristic   ContestCategory = 1250
)

type LanguageID

type LanguageID int
const (
	LanguageGo_1_20_6 LanguageID = 5002
)

func (LanguageID) Name

func (id LanguageID) Name() string

func (LanguageID) StringValue

func (id LanguageID) StringValue() string

type RatedType

type RatedType int
const (
	RatedTypeAll RatedType = 0
	RatedTypeABC RatedType = 1
	RatedTypeARC RatedType = 2
	RatedTypeAGC RatedType = 3
	RatedTypeAHC RatedType = 4
)

func RatedTypeString

func RatedTypeString(s string) (RatedType, error)

RatedTypeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func RatedTypeValues

func RatedTypeValues() []RatedType

RatedTypeValues returns all values of the enum

func (RatedType) IsARatedType

func (i RatedType) IsARatedType() bool

IsARatedType returns "true" if the value is listed in the enum definition. "false" otherwise

func (RatedType) String

func (i RatedType) String() string

Jump to

Keyboard shortcuts

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