internal

package
v0.0.0-...-87ca705 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const DIV_NEW_WORD_ITEM_TEMPLATE = `` /* 968-byte string literal not displayed */
View Source
const WORD_INDEX_FOOTER string = `` /* 1047-byte string literal not displayed */
View Source
const WORD_INDEX_HEADER string = `` /* 2504-byte string literal not displayed */

Variables

This section is empty.

Functions

func CheckErr

func CheckErr(err error)

func GenDailyWordHtmlFromJson

func GenDailyWordHtmlFromJson(dailyNewWordJsonFilePath string, historyPath string)

func GetDailyFileName

func GetDailyFileName() string

func GetTodaysDate

func GetTodaysDate() string

func GetTodaysDateWithFormat

func GetTodaysDateWithFormat(format string) string

Types

type Word

type Word struct {
	Index      int    `json:"index"`
	Word       string `json:"word"`
	Definition string `json:"def"`
}

func Decode2WordsInLimit

func Decode2WordsInLimit(r io.Reader) ([]Word, error)

func ReadLimitedJsonFile2Words

func ReadLimitedJsonFile2Words(jsonFile *os.File) ([]Word, error)

Jump to

Keyboard shortcuts

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