rank

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Copyright 2023 PraserX

Index

Constants

View Source
const RankCnt = 8

RankCnt defines total number of ranks.

Variables

View Source
var RankLimits = [RankCnt]int{
	0,
	3,
	8,
	12,
	18,
	25,
	35,
	45,
}

RankLimits specifies required number of consumed coffees to acquired given rank.

View Source
var Ranks = [RankCnt]string{
	"Unranked",
	"Coffee trainee",
	"Hesitant customer",
	"Regular customer",
	"Coffee business supporter",
	"Coffee gourmet",
	"Coffee guru",
	"God-Emperor",
}

Ranks definition.

Functions

func ComputeRank

func ComputeRank(qpm int) (userRank string)

ComputeRank computes and return rank based on monthly consumed coffee cups.

Types

This section is empty.

Jump to

Keyboard shortcuts

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