Documentation ¶
Index ¶
- func ByteCountSI(b int64) string
- func CalcSizeInByte(number float64, unit string) int64
- func GetFileExt(str string) string
- func GetH1(htmlString *string, idx int) string
- func GetLastItemString(slice []string) string
- func GetMediaType(t string) static.DataType
- func GetMeta(htmlString *string, property string) string
- func GetSectionHeadingElement(htmlString *string, level, idx int) string
- func NeedDownloadList(length int) []int
- func RemoveAdjDuplicates[T string | int](slice []T) []T
- func Wrap(err error, ctx string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ByteCountSI ¶ added in v1.2.27
ByteCountSI turn bytes to SI (decimal) format - https://yourbasic.org/golang/formatting-byte-size-to-human-readable-format/
func GetMediaType ¶
GetMediaType e.g. put in png get image, mp4 -> video
func GetSectionHeadingElement ¶ added in v1.2.32
func NeedDownloadList ¶
NeedDownloadList return the indices of gallery that need download
func RemoveAdjDuplicates ¶
RemoveAdjDuplicates of slice
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.