utils

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2022 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteEmpty

func DeleteEmpty(s []string) []string

DeleteEmpty ...

func FindChapters

func FindChapters(cID string, cIDs []string, chapsText []string) (string, []string, []string)

FindChapters to find chapters from source url in the txt file

func FindChaptersIDs

func FindChaptersIDs(cIDs []string) []string

func FindUrl added in v0.1.2

func FindUrl(urls []string) (max int)

func MaxIntSlice added in v0.1.2

func MaxIntSlice(v []int) int

func RemoveDuplicateStr added in v0.1.2

func RemoveDuplicateStr(strSlice []string) []string

func SliceFind

func SliceFind(slice []string, val string) (int, bool)

SliceFind search string in slice of string

func SliceIndex

func SliceIndex(limit int, predicate func(i int) bool) int

SliceIndex Get position of element in slice

Types

This section is empty.

Jump to

Keyboard shortcuts

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