diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/LICENSE b/bencode/LICENSE similarity index 100% rename from LICENSE rename to bencode/LICENSE diff --git a/bencode/README.md b/bencode/README.md new file mode 100644 index 0000000..8ab1528 --- /dev/null +++ b/bencode/README.md @@ -0,0 +1 @@ +this is a copy from code.google.com/p/bencode-go diff --git a/bencode_test.go b/bencode/bencode_test.go similarity index 100% rename from bencode_test.go rename to bencode/bencode_test.go diff --git a/decode.go b/bencode/decode.go similarity index 100% rename from decode.go rename to bencode/decode.go diff --git a/parse.go b/bencode/parse.go similarity index 100% rename from parse.go rename to bencode/parse.go diff --git a/struct.go b/bencode/struct.go similarity index 99% rename from struct.go rename to bencode/struct.go index 115daa9..bdcb3e1 100644 --- a/struct.go +++ b/bencode/struct.go @@ -534,5 +534,7 @@ func isValueNil(val reflect.Value) bool { // an infinite recursion. // 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)) }