Documentation ¶
Index ¶
- Variables
- func FormatFilesize(bytes int64) string
- func FormatFilesize2(bytes int64) string
- func InfoHashToMagnet(ih string, name string, trackers ...string) (str string)
- func IsWhitespace(r rune) bool
- func MarkdownToHTML(markdown string) template.HTML
- func Safe(s string) template.URL
- func SafeText(s string) template.HTML
- func SendError(w http.ResponseWriter, err error, code int)
- func TrimWhitespaces(s string) string
- func UnZlib(description []byte) (string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var HtmlMdRenderer md.Renderer
Functions ¶
func FormatFilesize ¶
func FormatFilesize2 ¶
func InfoHashToMagnet ¶
convert a binary infohash to a magnet uri given a display name and tracker urls
func MarkdownToHTML ¶
TODO: restrict certain types of markdown
Types ¶
This section is empty.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
* package for parsing bitorrent meta info objects originally from XD i2p bittorrent client: https://github.com/majestrate/XD
|
* package for parsing bitorrent meta info objects originally from XD i2p bittorrent client: https://github.com/majestrate/XD |
Click to show internal directories.
Click to hide internal directories.