Documentation ¶
Index ¶
- Variables
- func AESDecrypt(encrypted []byte, key, iv []byte) ([]byte, error)
- func FindTagByNameAttrs(node *html.Node, name string, useAttr bool, attrs []html.Attribute) []*html.Node
- func FindTagByRegExp(doc string, regStr string) [][]string
- func FormatSize(size int64) string
- func Get(client *http.Client, u string, headers map[string]string) (*http.Response, error)
- func GetAttrVal(node *html.Node, name string) string
- func GetHTMLPage(client *http.Client, u string, headers map[string]string) (*html.Node, error)
- func IsSubSlice[T comparable](dst, src []T) bool
- func MergeToMP4(fileListPath, outputPath string) error
- func RandomInt63n(min, max int64) int64
- func ReplaceChars(str string, chars []rune) string
- func SliceEqual[T comparable](s1, s2 []T) bool
Constants ¶
This section is empty.
Variables ¶
View Source
var InvalidDirSymbols = [10]rune{'/', '<', '>', ':', '"', '/', '\\', '|', '?', '*'}
Functions ¶
func FindTagByNameAttrs ¶
func FindTagByRegExp ¶
func FormatSize ¶ added in v0.3.2
FormatSize formats the file size and ensure the number of size always > 1. the unit of parameter `size` is Byte.
func GetHTMLPage ¶ added in v0.3.0
func IsSubSlice ¶
func IsSubSlice[T comparable](dst, src []T) bool
IsSubSlice returns whether src is the sub-slice of dst
func MergeToMP4 ¶ added in v0.3.0
func RandomInt63n ¶ added in v0.3.0
func ReplaceChars ¶ added in v0.3.2
func SliceEqual ¶
func SliceEqual[T comparable](s1, s2 []T) bool
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.