rito-news

module
v0.0.0-...-d5a2863 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: MIT

README

rito-news

Go Reference Go Report Card

Description

Go package that provides an API to get official news about Riot Games and their games (League of Legends, Legends of Runeterra, Teamfight Tactics, VALORANT and Wild Rift)

How to use

package main

import (
	"fmt"

	"github.com/Antosik/rito-news/lol"
)

func main() {
	client := lol.NewsClient{Locale: "ru-ru"}
	items, err := client.GetItems(10)

	if err != nil {
		fmt.Printf("An error occured: %v", err)
	} else {
		for _, item := range items {
			fmt.Println(item.Title, item.URL)
		}
	}
}

Supported Services

Attribution

This service isn't developed by Riot Games and doesn't reflect the views or opinions of Riot Games or anyone officially involved in producing or managing League of Legends, Legends of Runeterra, Teamfight Tactics, VALORANT, or Wild Rift. League of Legends, Legends of Runeterra, Teamfight Tactics, VALORANT, Wild Rift and Riot Games are trademarks or registered trademarks of Riot Games, Inc. League of Legends, Legends of Runeterra, Teamfight Tactics, VALORANT, Wild Rift (c) Riot Games, Inc.

Directories

Path Synopsis
examples
lol
lor
tft
val
wr
internal
browser
Package browser is the utility package that allows to launch browser with the perfomance oriented arguments
Package browser is the utility package that allows to launch browser with the perfomance oriented arguments
contentstack
Package contenstack implements the way to communicate with the contentstack-dependable content systems
Package contenstack implements the way to communicate with the contentstack-dependable content systems
serverstatus
Package serverstatus implements the way to interact with Server Status system (https://status.riotgames.com)
Package serverstatus implements the way to interact with Server Status system (https://status.riotgames.com)

Jump to

Keyboard shortcuts

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