pitakill/rickandmortyapigowrapper

Function params

Opened this issue · 1 comments

https://github.com/pitakill/rickandmortyapigowrapper/blob/master/http.go#L12

map[struct]interface must be used with variable data, for config options is better use structs because are self descriptive when you use any IDE or text editor with autocomplete:

image

This is a nice addon.

I'm going to update the options with a struct.

And rewrite the return of the makePetition to be agnostic (interface{})