# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
No description provided by the author
append a proper ? or & to url.
Ask user to confirm an (dangerous) action via typing yes in tty.
https://stackoverflow.com/questions/23350173 copy none-empty field values from src to dst.
similar to JavaScript's Object.assign(args[0], args[1], args[2]...), update and return args[0].
BytesSize returns a human-readable size in bytes, kibibytes, mebibytes, gibibytes, or tebibytes (e.g.: "44kiB", "17MiB").
Return at most 6 chars, e.g.: "123.1G".
No description provided by the author
No description provided by the author
From https://stackoverflow.com/questions/21060945/simple-way-to-copy-a-file .
No description provided by the author
Shallow copy a slice.
CustomSize returns a human-readable approximation of a size using custom format.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
DIY 了几个选择器语法(附加在标准CSS选择器字符串末尾).
try to extract absoulte time from DOM.
Extract filename from http response "Content-Disposition: attachment; filename=..." header.
No description provided by the author
offset: if > 0, indicates the bytes offset of the end of found time string in original str.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
FromHumanSize returns an integer from a human-readable specification of a size using SI standard (e.g.: "44kB", "17MB").
No description provided by the author
No description provided by the author
return a none-existing filename.
No description provided by the author
No description provided by the author
return (top-level) domain of a url.
"*.torrent" => ["a.torrent", "b.torrent"...].
HumanSize returns a human-readable approximation of a size capped at 4 valid numbers (e.g.: "2.746 MB", "796 KB").
HumanSizeWithPrecision allows the size to be in any precision, instead of 4 digit precision used in units.HumanSize.
No description provided by the author
No description provided by the author
No description provided by the author
Check whether str is a url of "magnet:" or "bc://bt/" schema.
No description provided by the author
No description provided by the author
Create hardlink duplicate for source dir at dest.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ParseDuration parses a duration string.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Parse standard HTTP_PROXY, HTTPS_PROXY, NO_PROXY (and lowercase versions) envs, return proxy for urlStr.
Parse a baseUrl relative relativeUrl, return absolute url.
Parse time.
Return time duration in seconds.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
RAMInBytes parses a human-readable string representing an amount of RAM in bytes, kibibytes, mebibytes, gibibytes, or tebibytes and returns the number of bytes, or -1 if the string is unparseable.
No description provided by the author
No description provided by the author
https://stackoverflow.com/questions/6395076/using-reflect-how-do-you-set-the-value-of-a-struct-field.
No description provided by the author
No description provided by the author
No description provided by the author
split a csv like line to values.
No description provided by the author
Return prefix of str that is at most max bytes encoded in UTF-8.
Return prefix of string at most width and actual width.
From https://stackoverflow.com/questions/23589564/function-for-converting-a-struct-to-map-in-golang .
No description provided by the author
Return de-duplicated slice that every member has unique key.
# Constants
See: http://en.wikipedia.org/wiki/Binary_prefix.
See: http://en.wikipedia.org/wiki/Binary_prefix.
header 占位符。用于保证实际发送 headers 的顺序.
See: http://en.wikipedia.org/wiki/Binary_prefix.
See: http://en.wikipedia.org/wiki/Binary_prefix.
See: http://en.wikipedia.org/wiki/Binary_prefix.
See: http://en.wikipedia.org/wiki/Binary_prefix.
See: http://en.wikipedia.org/wiki/Binary_prefix.
See: http://en.wikipedia.org/wiki/Binary_prefix.
See: http://en.wikipedia.org/wiki/Binary_prefix.
See: http://en.wikipedia.org/wiki/Binary_prefix.