Versions in this module Expand all Collapse all v0 v0.1.0 Mar 17, 2023 Changes in this version + const CodeMinecraftAPIFailure + const CodePlayerFound + const CodeXBoxBadResponseCode + var ErrDataMissingPlayer = errors.New("data missing player field") + type Client struct + HttpClient *http.Client + Server string + UseTLS bool + func NewClient() *Client + func (c *Client) Minecraft(ctx context.Context, id string) (*Player, error) + type FieldMissingError struct + func (f *FieldMissingError) Error() string + type FieldTypeError struct + func (f *FieldTypeError) Error() string + type HTTPStatusError struct + func (f *HTTPStatusError) Error() string + type Player struct + Avatar string + ID string + Meta map[string]interface{} + NameHistory []string + RawID string + Username string + type Response struct + Code string + Data map[string]interface{} + Error bool + Message string + Success bool + func (r *Response) Player() (*Player, error)