Documentation ¶
Index ¶
Constants ¶
View Source
const ( Iron = "iron" Bronze = "bronze" Silver = "silver" Gold = "gold" Platinum = "platinum" Diamond = "diamond" Master = "master" Grandmaster = "grandmaster" Challenger = "challenger" PlatPlus = "platinum_plus" DiamPlus = "diamond_plus" MasterPlus = "master_plus" All = "overall" )
U.GG rank query strings
View Source
const ( Default = "" Top = "top" Jungle = "jungle" Mid = "middle" Bot = "bot" Supp = "support" )
U.GG position query strings
Variables ¶
View Source
var Ranks = []string{Iron, Bronze, Silver, Gold, Platinum, Diamond, MasterPlus}
Ranks from U.GG ordered from lower to higher
Functions ¶
func GetWRsByRank ¶
GetWRsByRank returns a map of Rank - Winrate, with the Ranks constant keys
Types ¶
type Config ¶
Config stores info about what we are interested in when calling a function (champ, role, patch...)
func (Config) QueryParamChamp ¶
QueryParamChamp returns the config's Champ property with the valid's u.gg format (lowercase and no spaces)
This allows the users to pass "Aurelion Sol" in the config instead of "aurelionsol"
func (Config) QueryParamPatch ¶
QueryParamPatch returns the config's Patch property with the valid's u.gg format (with underscores)
This allows the users to pass "10.12" in the config instead of "10_12"
func (Config) QueryParamRole ¶
QueryParamRole returns the config's Role property with the valid's u.gg format (lowercase and no spaces)
This allows the users to pass "Top" in the config instead of "top"
Click to show internal directories.
Click to hide internal directories.