blog

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MatchAll

func MatchAll(articles []Article, keyword string) (title []Article, desc []Article, total int)

Types

type Article

type Article struct {
	Title string

	URL     string
	Date    string
	Authors string

	Summary string

	Slug string
	// contains filtered or unexported fields
}

func Articles

func Articles(client *http.Client) ([]Article, error)

func (Article) Display

func (a Article) Display() discord.Embed

func (Article) Match

func (a Article) Match(keyword string) MatchType

type MatchType

type MatchType uint8
const (
	NoMatch MatchType = iota
	MatchTitle
	MatchDesc
	MatchExact
)

Jump to

Keyboard shortcuts

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