Documentation ¶
Index ¶
- func CheckFormat(solve string) bool
- func CompareSolves(t1 *int, s2 string, isfmc bool, scramble string)
- func CreateToken(userid int, secretKey string, expiresInSeconds int) (string, error)
- func DOES_NOT_WORK_CURRENTLY_FOR_SOME_REASON_GetWorldRecords(eventName string) (int, int, error)
- func FormatMultiTime(timeInMiliseconds int) string
- func FormatMultiTimes(solves []string) []string
- func FormatTime(timeInMiliseconds int, isfmc bool) string
- func GetContinents(db *pgxpool.Pool) ([]string, error)
- func GetCountries(db *pgxpool.Pool) ([]string, error)
- func GetNoOfSolves(format string) (int, error)
- func GetScramblesByResultEntryId(db *pgxpool.Pool, eid int, cid string) ([]string, error)
- func GetSolve(solve string, isfmc bool, scramble string) string
- func GetWorldRecords(eventName string) (int, int, error)
- func IsFMC(eventiconcode string) bool
- func LeftPad(s string, cnt int, ch string) string
- func NextMonday() time.Time
- func ParseMultiToMilliseconds(s string) int
- func ParseSolveToMilliseconds(s string, isfmc bool, scramble string) int
- func PlaceFromDotToEnglish(from string) string
- func RandSeq(n int) string
- func RegenerateImageForScramble(db *pgxpool.Pool, scrambleId int, scramble string, scramblingcode string) (string, error)
- func Reverse[S ~[]E, E any](s S)
- func SaveScrambleImg(img_id string, svg_content string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckFormat ¶
returns true if the format is ok, eg. not >= 60 seconds, not >= 60 minutes, ... otherwise returns false
func CreateToken ¶
func FormatMultiTime ¶
func FormatMultiTimes ¶
func FormatTime ¶
func GetNoOfSolves ¶
func NextMonday ¶
func PlaceFromDotToEnglish ¶
endsWith: 1. to 1st, 2. to 2nd, 3. to 3rd, 4-9. to 4-9th, ... except: 11-19. to 11-19th
func SaveScrambleImg ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.