tft

package
v0.0.0-...-7b5fe61 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NewsClient

type NewsClient struct {
	// Available locales:
	// en-us, en-gb, de-de, es-es, fr-fr, it-it, en-au, pl-pl, ru-ru,
	// el-gr, ro-ro, hu-hu, cs-cz, es-mx, pt-br, tr-tr, ko-kr, ja-jp
	// en-sg, en-ph, zh-tw, vi-vn, th-th
	Locale string
}

A client that allows to get official Teamfight Tactics news.

Source - https://teamfighttactics.leagueoflegends.com/

func (NewsClient) GetItems

func (client NewsClient) GetItems(count int) ([]NewsEntry, error)

type NewsEntry

type NewsEntry struct {
	UID         string    `json:"uid"`
	Authors     []string  `json:"authors"`
	Categories  []string  `json:"categories"`
	Date        time.Time `json:"date"`
	Description string    `json:"description"`
	Image       string    `json:"image"`
	Title       string    `json:"title"`
	URL         string    `json:"url"`
}

Teamfight Tactics news entry

Jump to

Keyboard shortcuts

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