Hi,
is possible to declare structs like
type respon struct {
Results []test `json:"good"`
}
type test struct {
Data string `json:"data"`
}
that will be used to get data from APIs in another file?
right now I have wrote these structs in the same file of the one is doing the http get requests, is possible to write this structs in another file in another package called like package config
and than use it inside the package that perform the http get request?
Thanks