config

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DirName         = "jobcli"
	ConfigFileName  = "config.json"
	ProxiesFileName = "proxies.txt"
	CookiesFileName = "cookies.json"
)

Variables

This section is empty.

Functions

func ConfigDir

func ConfigDir() (string, error)

func ConfigPath

func ConfigPath() (string, error)

func Init

func Init() ([]string, error)

Init writes default config.json and proxies.txt if they don't already exist.

func LoadProxies

func LoadProxies(flagValue string) ([]string, error)

func ProxiesPath

func ProxiesPath() (string, error)

Types

type Config

type Config struct {
	DefaultLocation string `json:"default_location"`
	DefaultCountry  string `json:"default_country"`
	DefaultLimit    int    `json:"default_limit"`
}

Config contains default search settings.

func DefaultConfig

func DefaultConfig() Config

func Load

func Load() (Config, error)

Jump to

Keyboard shortcuts

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