utils

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrGzip  = errors.New("gzip error")
	ErrRead  = errors.New("read error")
	ErrWrite = errors.New("write error")
)

Functions

func CopyFile

func CopyFile(src, dst string) error

func GetOSInfo

func GetOSInfo() string

func GetStopTime added in v0.1.10

func GetStopTime() (ts int64)

func GunzipBytes

func GunzipBytes(path string) ([]byte, error)

func OpenRulesFile

func OpenRulesFile(filePath string) (io.Reader, func(), error)

func ParseRules

func ParseRules(rdr io.Reader) (*parser.RulesT, error)

func ParseRulesPath

func ParseRulesPath(path string) (*parser.RulesT, error)

func Sha256Sum

func Sha256Sum(data []byte) string

func UrlBase

func UrlBase(fullUrl string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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