util

package
v1.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2023 License: MIT Imports: 3 Imported by: 0

README

GW2API/util

The util subpackage contains utility functions that are not directly provided by the api.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLinkedWorlds

func GetLinkedWorlds(match *gw2api.WvWMatch, host int) []int

GetLinkedWorlds returns all linked worlds of a host world in the current match

func IsLinkedWorld

func IsLinkedWorld(match *gw2api.WvWMatch, host, link int) bool

IsLinkedWorld reports whether the entered world id is currently linked with the entered host id

func PredictNextWvWMatches added in v0.2.4

func PredictNextWvWMatches(matches []*gw2api.WvWMatch) []*gw2api.WvWMatch

PredictNextWvWMatches predicts the next weeks matchup based on the current point standings The lowest tier cannot descend, the highest cannot ascend The returned match only returns id and word data

func ValidAPIKey

func ValidAPIKey(key string) bool

ValidAPIKey checks whether the entered apikey has a valid format

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL