How 0xn0x/go-artifactsmmo works
Project type and purpose
• This is a Go SDK (client library) for the ArtifactsMMO game API.
• Its job is to abstract the HTTP calls, marshal/unmarshal JSON, and expose idiomatic Go methods for game operations (movement, fights, crafting, inventory, etc.).
File structure
• Top‐level executable commands in cmd/first-fight and cmd/getting-started – example binaries illustrating SDK usage.
• Public entry points: artifactsmmo.go and client.go define the exported API (e.g. NewClient, client methods).
• internal/api: low‐level HTTP request/response machinery and endpoint definitions.
• internal/client: configuration, HTTP client instantiation, token & character name handling.
• models/: Go structs for API resources (Character, Fight, Item, Bank, GrandExchange, Task, etc.), errors, and responses.
• go.mod/go.sum: dependency management.
• CI/CD: GitHub workflows for build, lint, and coverage.
README for additional insights
• Confirms it’s a Go SDK for interacting with a RESTful JSON API.
• Highlights supported features: authentication, movements, fights, gathering, crafting, tasks, inventory, bank, recycling, grand exchange.
• Shows a minimal usage example: NewClient + GetCharacterInfo().