qwnu

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanHtmlText added in v0.7.2

func CleanHtmlText(htmlText string) string

func ParseParticipants added in v0.7.2

func ParseParticipants(row *goquery.Selection) string

Types

type Event

type Event struct {
	Title   string `json:"title"`
	Status  string `json:"status"`
	Date    string `json:"date"`
	WikiUrl string `json:"wiki_url"`
	LogoUrl string `json:"logo_url"`
}

func Events

func Events(limit int) ([]Event, error)

type ForumPost

type ForumPost struct {
	Title  string `json:"title"`
	Forum  string `json:"forum"`
	Author string `json:"author"`
	Date   string `json:"date"`
	Url    string `json:"url"`
}

func ForumPosts

func ForumPosts(limit int) ([]ForumPost, error)

type GameInSpotlight added in v0.3.0

type GameInSpotlight struct {
	Participants string              `json:"participants"`
	Description  string              `json:"description"`
	Stream       GameInSpotlightLink `json:"stream"`
	Event        GameInSpotlightLink `json:"event"`
	Date         string              `json:"date"`
}

func GamesInSpotlight added in v0.3.0

func GamesInSpotlight() ([]GameInSpotlight, error)
type GameInSpotlightLink struct {
	Title string `json:"title"`
	Url   string `json:"url"`
}

type NewsPost

type NewsPost struct {
	Title string `json:"title"`
	Date  string `json:"date"`
	Url   string `json:"url"`
}

func NewsPosts

func NewsPosts(limit int) ([]NewsPost, error)

type WikiArticle added in v0.3.7

type WikiArticle struct {
	Title string `json:"title"`
	Url   string `json:"url"`
	Date  string `json:"date"`
}

func WikiRecentChanges added in v0.3.7

func WikiRecentChanges(limit int) ([]WikiArticle, error)

Jump to

Keyboard shortcuts

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