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 ¶
ComputeRank computes and return rank based on monthly consumed coffee cups.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.