articles

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HN_PROFILE_URL = "https://news.ycombinator.com/user?id=%s"
	LB_PROFILE_URL = "https://lobste.rs/u/%s"
)

Variables

This section is empty.

Functions

func LinkToID

func LinkToID(link string) string

Types

type Article

type Article struct {
	ID     string
	Title  string
	Link   string
	Tags   []string
	Author string
	Source string
}

func (Article) Description

func (a Article) Description() string

func (Article) RelatesTo

func (a Article) RelatesTo(subject string) bool

func (Article) ToDiscordEmbed

func (a Article) ToDiscordEmbed() *discordgo.MessageEmbed

Jump to

Keyboard shortcuts

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