config

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// GeektimeDownloaderFolder app config and download root dolder name
	GeektimeDownloaderFolder = "geektime-downloader"
)

Variables

This section is empty.

Functions

func ReadCookieFromConfigFile

func ReadCookieFromConfigFile(phone string) ([]*http.Cookie, error)

ReadCookieFromConfigFile read cookies from app config file.

func RemoveConfig

func RemoveConfig(phone string) error

RemoveConfig remove specified users' config

func WriteCookieToConfigFile

func WriteCookieToConfigFile(phone string, cookies []*http.Cookie) error

WriteCookieToConfigFile write cookies to config file with specified phone prefix file name.

Types

This section is empty.

Jump to

Keyboard shortcuts

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