Hey everyone. I've been working on a client library to easily convert Blizzard game API calls into Go structures. I'm looking for help with package structure, ease of use as an API, and any best practices I may have missed.
My client library can be viewed here on Github. I still have a lot of calls to go!
Thank you ahead of time for your feedback!
EDIT: Update terminology to better fit my project.
评论:
BadlyCamouflagedKiwi:
FuzzyStatic:A small suggestion for your examples; use the := operator more. Instead of
var ( seasonRift *SeasonRift err error ) seasonRift, err = d.GetCurrentSeasonNecromancerRift(true) if err != nil { fmt.Println(err) }
you can write it more succintly as
seasonRift, err := d.GetCurrentSeasonNecromancerRift(true) if err != nil { fmt.Println(err) }
which puts more emphasis on your library (the interesting part!) and is less repetitive.
neoasterisk:Done! Thank you for the suggestions! It definitely makes more sense to show the good stuff and avoid the fluff.
FuzzyStatic:I am confused. Is this an API or a client library for the Blizzard API?
After looking up both terminologies, I would say this is a client library for the Blizzard API. I will update the documentation accordingly. TY!
