iceflowre / go-wargaming Goto Github PK
View Code? Open in Web Editor NEWWargaming.net API client in Go
License: MIT License
Wargaming.net API client in Go
License: MIT License
From #6
Put also adding //
spacing comment lines:
// realm:
-// Valid realms: RealmAsia, RealmEu, RealmNa
+//
+// Valid realms: RealmAsia, RealmEu, RealmNa
+//
// search:
-// Player name search string. Parameter "type" defines minimum length and type of search. Using the exact search type, you can enter several names, separated with commas. Maximum length: 24.
+//
+// Player name search string. Parameter "type" defines minimum length and type of search. Using the exact search type, you can enter several names, separated with commas. Maximum length: 24.
When fixing the generator (patchs.go fixes), a contributor needs to build the local patched version.
However go build -o generator github.com/IceflowRE/go-wargaming/v4/tools/generator
(like instructed in the README) will build the unpatched version from the upstream repository, not the local checkout.
It's possible to build the generator locally (go build -o generator tools/_generator/main.go
, but it has other side effects, mainly messing-up the imports:
import (
- "github.com/IceflowRE/go-wargaming/v4/wargaming/wgnTime"
+ "/wargaming/wgnTime"
)
Put also adding //
spacing comment lines:
// realm:
-// Valid realms: RealmAsia, RealmEu, RealmNa
+//
+// Valid realms: RealmAsia, RealmEu, RealmNa
+//
// search:
-// Player name search string. Parameter "type" defines minimum length and type of search. Using the exact search type, you can enter several names, separated with commas. Maximum length: 24.
+//
+// Player name search string. Parameter "type" defines minimum length and type of search. Using the exact search type, you can enter several names, separated with commas. Maximum length: 24.
My go version:
> go version
go version go1.19.8 linux/amd64
Add more how to contribute information.
Whcih also includes
Having access to the "error", "status" and "meta" would be really nice.
In particular, the "meta" field can contain pagination information (ex: number of items, number of pages) which are extremely helpful when iterating through paginated lists.
Response payload examples:
{
"status": "error",
"error": {
"field": "ship_id",
"message": "INVALID_SHIP_ID",
"code": 407,
"value": "3315513040a"
}
}
{
"status": "ok",
"meta": {
"count": 100,
"page_total": 7,
"total": 608,
"limit": 100,
"page": 1
},
"data": {
"3315513040": {
"ship_id": 3315513040,
"name": "[Zaō]"
}
}
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.