Documentation
¶
Index ¶
- func AuthorArtist(author string, artist string) string
- func GenTitle(volume string, chapter string, title string) string
- func GetAndGoquery(url string) (*goquery.Document, error)
- func GetAndJsonParse(rurl string, v any) (error, bool)
- func HexToStr(str string) (string, error)
- func Must[T any](v T, err error) T
- func StrBetween(str string, left string, right string) (string, error)
- func StrBetweenFirst(str string, left string, right string) (string, error)
- func StrConaintsIgnoreCase(a string, b string) bool
- func StrToHex(str string) string
- type DistanceSorter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthorArtist ¶
func GetAndJsonParse ¶
does a get request to the url, than calls json.Unmarshal with the body and the second argument returns possible errors and a bool that is true if the response status code is 404
func StrConaintsIgnoreCase ¶
Types ¶
type DistanceSorter ¶
type DistanceSorter struct {
Data []*types.SearchResult
Distances []float64
}
func (DistanceSorter) ComputeDistances ¶
func (t DistanceSorter) ComputeDistances(query string)
TODO: temporary solution, find better algoritm
func (DistanceSorter) Len ¶
func (a DistanceSorter) Len() int
func (DistanceSorter) Less ¶
func (a DistanceSorter) Less(i, j int) bool
func (DistanceSorter) Swap ¶
func (a DistanceSorter) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.