Albirew/nyaa-pantsu
Archivé
1
0
Bifurcation 0
Ce dépôt a été archivé le 2022-05-07. Vous pouvez voir ses fichiers ou le cloner, mais pas ouvrir de ticket ou de demandes d'ajout, ni soumettre de changements.
nyaa-pantsu/vendor/github.com/zeebo/bencode/tracer.go
Jeff Becker 11a6fce027 add torrent file parsing for upload form
* vendor bencode library github.com/zeebo/bencode

* add metainfo parsing library from XD

* fix up upload handler so to be less cluttered
2017-05-06 07:43:24 -04:00

24 lignes
297 o
Go

package bencode
import (
"log"
"strings"
)
var traceDepth int
func prefix() string {
return strings.Repeat("\t", traceDepth)
}
func un(val string) {
traceDepth--
log.Print(prefix(), "<-", val)
}
func trace(val string) string {
log.Print(prefix(), "->", val)
traceDepth++
return val
}