move bencode to subdirectory
making room for other packages
This commit is contained in:
parent
c104c8e258
commit
0eb8ce1253
7 changed files with 3 additions and 0 deletions
0
README.md
Normal file
0
README.md
Normal file
1
bencode/README.md
Normal file
1
bencode/README.md
Normal file
|
@ -0,0 +1 @@
|
||||||
|
this is a copy from code.google.com/p/bencode-go
|
|
@ -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))
|
||||||
}
|
}
|
Loading…
Reference in a new issue