Documentation
¶
Index ¶
- func CacheDir() string
- func Chunk[T any](s iter.Seq2[T, error], n int) iter.Seq2[[]T, error]
- func FetchConcurrently(urls []string, concurrency, wait int) (responses [][]byte, err error)
- func FetchURL(fetchURL string) (*http.Response, error)
- func GenWorkers(num, wait int) chan<- func()
- func GetDefaultLogDir() string
- func Major(osVer string) (majorVersion string)
- func SetLogger(logToFile bool, logDir string, debug, logJSON bool) error
- func TrimSpaceNewline(str string) string
- func Unique[T comparable](s []T) []T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Chunk ¶ added in v0.5.1
Chunk chunks the sequence into n-sized chunks Note: slices.Chunk doesn't support iterators as of Go 1.23. https://pkg.go.dev/slices#Chunk
func FetchConcurrently ¶
FetchConcurrently fetches concurrently
func GetDefaultLogDir ¶
func GetDefaultLogDir() string
GetDefaultLogDir returns default log directory
func TrimSpaceNewline ¶
TrimSpaceNewline deletes space character and newline character(CR/LF)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.