Documentation ¶
Index ¶
Constants ¶
View Source
const URL string = "https://www.ubisoft.com/de-de/game/rainbow-six/siege/stats/glossary/fa94e165-6328-4a9b-8581-81735ffaba27"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metadata ¶
type Metadata struct {
Seasons []Season
}
func New ¶
New creates a new instance, parsing scriptJS. The parameter should be a Javascript string starting with "window.__PRELOADED_STATE__ = <JS object>". This method should only be called internally.
func (*Metadata) SeasonNameFromID ¶ added in v0.1.0
SeasonNameFromID will return the name of the season (e.g. "Brutal Swarm") with the provided ID or "" if unknown.
func (*Metadata) SeasonSlugFromID ¶ added in v0.1.0
SeasonSlugFromID will return the slug of the season (e.g. "Y7S3") with the provided ID or "" if unknown.
func (*Metadata) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.