util

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchFeedFile

func FetchFeedFile(url string, compressed bool) ([]byte, error)

FetchFeedFile : fetch feed files specified by arg

func GenWorkers

func GenWorkers(num, wait int) chan<- func()

GenWorkers generate workers

func GetDefaultLogDir

func GetDefaultLogDir() string

GetDefaultLogDir returns default log directory

func GetYearsUntilThisYear

func GetYearsUntilThisYear(startYear int) (years []int, err error)

GetYearsUntilThisYear : GetYearsUntilThisYear

func SetLogger

func SetLogger(logToFile bool, logDir string, debug, logJSON bool) error

SetLogger set logger

func Unique added in v0.5.3

func Unique[T comparable](s []T) []T

Unique return unique elements

Types

This section is empty.

Jump to

Keyboard shortcuts

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