utils

package
v0.0.0-...-c1c3985 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOnlineContent

func GetOnlineContent(url string) (string, error)

func ReGetFirst

func ReGetFirst(re *regexp.Regexp, text string) string

func ReadAll

func ReadAll(name string) (string, error)

func Str2Bool

func Str2Bool(valBool string) bool

func WriteContent

func WriteContent(filename string, data []byte) (n int, unknown error)

Types

type REQueryer

type REQueryer interface {
	Query(pattern string) *regexp.Regexp
}

func NewCachedRegexpQueryer

func NewCachedRegexpQueryer(cacheStore *cache.Cache) REQueryer

func NewRegexpQueryer

func NewRegexpQueryer() REQueryer

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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