s32x / ovrstat

:video_game: An Unofficial Overwatch Stats API
https://ovrstat.com
BSD 3-Clause "New" or "Revised" License
99 stars 18 forks source link

Making unexported types like `careerStats` as exported #17

Closed savely-krasovsky closed 2 years ago

savely-krasovsky commented 6 years ago

For example I need some logic with different modes:

var stats ovrstat.CareerStats
switch mode {
case "competitive":
  stats = user.Profile.CompetitiveStats
case "quickplay":
  stats = user.Profile.QuickPlayStats
}

But now I have to use reflect package and digging type.

jangraefen commented 2 years ago

I would like that as well. I will create a PR for this.