config

package
v0.0.12 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DumpCache

func DumpCache(cache Cache) error

func LoadWords

func LoadWords() ([]string, error)

func RemoveCache

func RemoveCache() error

func Replacer

func Replacer(words []string) ([]string, []string)

Types

type Cache

type Cache struct {
	Cookies []Cookie `json:"cookies"`
	Token   string   `json:"token"`
}

func LoadCache

func LoadCache() (cache Cache, exist bool, err error)

type Config

type Config struct {
	UserAgent string
}

func LoadConfig

func LoadConfig() (Config, error)
type Cookie struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

Jump to

Keyboard shortcuts

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