core

package
v0.0.0-...-865d8b4 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AppConfig = cliBase.ReadYamlSops[Config]("~/.config/article-summarizer/config.sops.yaml") // init

Functions

func ClearScreen

func ClearScreen()

func DetectLanguage

func DetectLanguage(content string) string

func GetEntries

func GetEntries() ([]wallabago.Item, error)

func Summarize

func Summarize(content string, language string, mode string) string

Types

type Config

type Config struct {
	WallabagUrl    string `yaml:"WALLABAG_URL"`
	ClientID       string `yaml:"CLIENT_ID"`
	ClientSecret   string `yaml:"CLIENT_SECRET"`
	Username       string `yaml:"USERNAME"`
	Password       string `yaml:"PASSWORD"`
	GoogleAIApiKey string `yaml:"GOOGLE_AI_API_KEY"`
}

Jump to

Keyboard shortcuts

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