internal

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "0.8.0"

Variables

This section is empty.

Functions

func GenerateCardID added in v0.5.0

func GenerateCardID(bulgarianWord string) string

GenerateCardID creates a unique ID for a card based on timestamp and Bulgarian word Format: epochMillis_md5(word)[:8]

func SanitizeFilename added in v0.5.0

func SanitizeFilename(s string) string

SanitizeFilename creates a safe filename from a string

func SaveCardType added in v0.8.0

func SaveCardType(cardDir string, cardType CardType) error

SaveCardType saves the card type to a file in the card directory

Types

type CardType added in v0.8.0

type CardType string

CardType represents the type of flashcard

const (
	// CardTypeEnBg represents English-Bulgarian cards (default)
	CardTypeEnBg CardType = "en-bg"
	// CardTypeBgBg represents Bulgarian-Bulgarian cards
	CardTypeBgBg CardType = "bg-bg"
)

func LoadCardType added in v0.8.0

func LoadCardType(cardDir string) CardType

LoadCardType loads the card type from a card directory Returns CardTypeEnBg as default for backwards compatibility

func (CardType) DisplayName added in v0.8.0

func (ct CardType) DisplayName() string

DisplayName returns a human-readable name for the card type

func (CardType) IsBgBg added in v0.8.0

func (ct CardType) IsBgBg() bool

IsBgBg returns true if this is a Bulgarian-Bulgarian card

func (CardType) String added in v0.8.0

func (ct CardType) String() string

String returns the string representation of the card type

Directories

Path Synopsis
Package anki provides functionality to generate Anki-compatible flashcard formats from Bulgarian words, audio, and images.
Package anki provides functionality to generate Anki-compatible flashcard formats from Bulgarian words, audio, and images.
Package archive handles archiving of the cards directory with timestamps.
Package archive handles archiving of the cards directory with timestamps.
Package audio provides audio generation functionality using OpenAI TTS for Bulgarian text-to-speech conversion.
Package audio provides audio generation functionality using OpenAI TTS for Bulgarian text-to-speech conversion.
Package batch handles batch processing of Bulgarian words from files.
Package batch handles batch processing of Bulgarian words from files.
Package cli provides command-line interface setup and configuration for the totalrecall application.
Package cli provides command-line interface setup and configuration for the totalrecall application.
Package config provides configuration management for the totalrecall application using viper for flexible configuration options.
Package config provides configuration management for the totalrecall application using viper for flexible configuration options.
Package image provides image search functionality to find representative images for Bulgarian words from various APIs.
Package image provides image search functionality to find representative images for Bulgarian words from various APIs.
Package models provides functionality for listing and categorizing available OpenAI models.
Package models provides functionality for listing and categorizing available OpenAI models.
Package phonetic provides functionality for fetching detailed phonetic information about Bulgarian words using OpenAI's GPT models.
Package phonetic provides functionality for fetching detailed phonetic information about Bulgarian words using OpenAI's GPT models.
Package processor contains the core business logic for processing Bulgarian words.
Package processor contains the core business logic for processing Bulgarian words.
Package translation provides Bulgarian to English translation services using the OpenAI API.
Package translation provides Bulgarian to English translation services using the OpenAI API.

Jump to

Keyboard shortcuts

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