simplifying the repo, commands removed and proper libraries kept

This commit is contained in:
Colin Henry
2020-07-08 18:59:37 -07:00
parent cb0bc37e6b
commit 3bdd3e503e
86 changed files with 1090 additions and 2345 deletions

24
encoding/xml/xml.go Normal file
View File

@@ -0,0 +1,24 @@
package xml
import (
"encoding/xml"
"io"
)
func Encoder(w io.Writer, e interface{}) error {
return xml.NewEncoder(w).Encode(e)
}
func Decoder(r io.Reader, e interface{}) error {
return xml.NewDecoder(r).Decode(e)
}
// func Decoder(get func() interface{}) func(io.Reader) (interface{}, error) {
// //TODO I dont like the get() function, find a better way of dealing with this
// return func(r io.Reader) (interface{}, error) {
// e := get()
// err := xml.NewDecoder(r).Decode(e)
// return e, err
// }
// }
//