commented code cleanup
This commit is contained in:
parent
37d0d5e98d
commit
85df14e0c6
@ -12,12 +12,3 @@ func Encoder(w io.Writer, e interface{}) error {
|
||||
func Decoder(r io.Reader, e interface{}) error {
|
||||
return json.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 := json.NewDecoder(r).Decode(e)
|
||||
// return e, err
|
||||
// }
|
||||
// }
|
||||
|
@ -12,13 +12,3 @@ func Encoder(w io.Writer, e interface{}) error {
|
||||
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
|
||||
// }
|
||||
// }
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user