util

package
v0.0.0-...-d958a0d Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: MIT Imports: 19 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RedisClient *redis.Client

Functions

func ParsemarkdownHacknews

func ParsemarkdownHacknews() error

func RunCmds

func RunCmds(cmds []Cmd) (logs []string, err error)

func SpiderHackNews

func SpiderHackNews() error

func SpiderHackShows

func SpiderHackShows() error

func SpiderRedditProgramming

func SpiderRedditProgramming() error

func TranslateCh2En

func TranslateCh2En(text string) string

func TranslateEn2Ch

func TranslateEn2Ch(text string) string

Types

type Cmd

type Cmd struct {
	Name string
	Args []string
}

type NewsItem

type NewsItem struct {
	TitleZh string `json:"titleZh"`
	TitleEn string `json:"titleEn"`
	Url     string `json:"url"`
	Date    string `json:"date"`
}

Jump to

Keyboard shortcuts

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