utils

package
v0.0.0-...-c108aef Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDirectory

func CreateDirectory(path string) error

func RequestURL

func RequestURL(url string) (*goquery.Document, error)

func WriteFile

func WriteFile(URL string, outPath string) error

Types

type SafeQuery

type SafeQuery struct {
	// contains filtered or unexported fields
}

func NewSafeQuery

func NewSafeQuery(head *goquery.Document) *SafeQuery

func (*SafeQuery) Read

func (sq *SafeQuery) Read() *goquery.Document

func (*SafeQuery) Write

func (sq *SafeQuery) Write(head *goquery.Document)

type ShortCache

type ShortCache struct {
	// contains filtered or unexported fields
}

func NewCache

func NewCache() *ShortCache

func (*ShortCache) Add

func (sc *ShortCache) Add(key string)

func (*ShortCache) Get

func (sc *ShortCache) Get(key string) bool

Jump to

Keyboard shortcuts

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