package
0.18.6
Repository: https://github.com/top-solution/go-libs.git
Documentation: pkg.go.dev

# Functions

ResponseEncoder is a custom goa Encoder able to output data in CSV format It can support any endpoint returning: - A slice of structs - A struct containing a "Data" field which is a slice of structs (ie: Pagination wrappers) - A simple map - A struct containing a "Data" field which is a simple map Note: nested structs are handled only for the first level, and only for slices Clients are supposed to set the Accept header to application/csv in order to get the actual CSV.

# Structs

CSVEncoder is a custom goahttp.Encoder.