GOLang cmd-line utility that hits Blizzard's pubic API for WoW character stats.
I will unoffically only be supporting Linux Mint since that's the platform I run this tool from. However it should work on most *NIX systems that can run GOLANG.
A recent version of GOlang ( tested with version go1.13.8 linux/amd64 on Linux Mint )
Library to read cmd line options
go get github.com/ogier/pflag
You MUST have a valid WoW token for Blizzard's API or you can't use this tool. No worries it's free.
Great question and Blizz has your back. Read their doc here.
You MUST export ENV VAR WOW_API_TOKEN with the value of a valid token.
export WOW_API_TOKEN=your_secret_api_wow_token_goes_here
./getwowstats.go -r aggramar -l us -c pownage -m GetProfileSummary
Name: Pownage
Gender: Male
Faction: Horde
Race: Orc
Class: Warlock
Realm: Aggramar
Level: 54
Active Spec: Affliction
Experience: 246258
Achieveent Points: 1310
Last Login: 1.622774087e+12
Avg. Item Lvl.: 94
Equipped Item Lvl.: 88
./getwowstats -veresion
getwowstats: Version 1.0
Run the formatting linter gofmt
gofmt -e getwowstats.go
goimport adds missing imports and removes unreferenced imports.
go get golang.org/x/tools/cmd/goimports
Just say NO to global variables
go get 4d63.com/gochecknoglobals```