Skip to content

Antosik/rito-news

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

📰🎮 Go package that provides an API to get official news about Riot Games games

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages