package
1.2.20
Repository: https://github.com/rl404/go-malscraper.git
Documentation: pkg.go.dev

# Functions

ArrayFilter to remove empty string from slice.
BuildURL to build URL with its paths.
BuildURLWithQuery to build URL with query params.
Ellipsis to substring long string.
GetCurrentSeason to get current season ("spring", "summer", "fall", "winter").
GetDuration to get duration in seconds.
GetMapKey to get key from map.
GetPercent to calculate percentage result with adjustable number of digit after comma.
GetSeasonName to get season name ("spring", "summer", "fall", "winter").
GetValueFromSplit to get value from splitted string.
ImageURLCleaner to clean dirty image url.
InArrayInt to check if int value is in array int.
InArrayStr to get if value is in array string.
ParseTime is time parser wrapper of built-in library `time.ParseInLocation`.
SecondToString to convert int seconds to string duration.
StrToDate to convert MyAnimeList date string to splitted date (year, month, day).
StrToFloat to convert string number to float64 including comma removal (1,234.56 -> 1234.56).
StrToNum to convert string number to integer including comma removal (1,234 -> 1234).
StrToTime to convert MyAnimeList date string to time.Time type.
Thousand to convert int to string with ',' thousand.
UniqueInt to remove duplicate in slice.
URLCleaner is wrapper for image and video url cleaner for easier call.
VideoURLCleaner to clean dirty video url.