Closed moreirathomas closed 2 years ago
Add json struct tags to benchttp.Report to correctly marshal the struct when responding via http.
benchttp.Report
Then:
{ "Benchmark": { "Records": [] }, "Metadata": { "Config": { "Output": {} }, } }
Now:
{ "benchmark": { "records": [] }, "metadata": { "config": {} } }
Also, Report.Metadata.Output is omitted from the marshalled response.
Report.Metadata.Output
Description
Add json struct tags to
benchttp.Report
to correctly marshal the struct when responding via http.Changes
Then:
Now:
Also,
Report.Metadata.Output
is omitted from the marshalled response.