move bencode to subdirectory

making room for other packages
This commit is contained in:
Vincent Batts 2014-08-14 14:27:17 -04:00
parent c104c8e258
commit 0eb8ce1253
7 changed files with 3 additions and 0 deletions

0
README.md Normal file
View file

1
bencode/README.md Normal file
View file

@ -0,0 +1 @@
this is a copy from code.google.com/p/bencode-go

View file

@ -534,5 +534,7 @@ func isValueNil(val reflect.Value) bool {
// an infinite recursion. // an infinite recursion.
// //
func Marshal(w io.Writer, val interface{}) error { func Marshal(w io.Writer, val interface{}) error {
// TODO match other encoders, like encoding/json ...
// func Marshal(v interface{}) ([]byte, error)
return writeValue(w, reflect.ValueOf(val)) return writeValue(w, reflect.ValueOf(val))
} }