1
0
mirror of https://github.com/aclindsa/moneygo.git synced 2025-07-03 12:48:38 -04:00

testing: Test creating reports

This commit is contained in:
2017-11-01 21:03:07 -04:00
parent 5b0b0bd03b
commit d3c03e4380
3 changed files with 137 additions and 0 deletions

View File

@ -58,6 +58,11 @@ func (rl *ReportList) Write(w http.ResponseWriter) error {
return enc.Encode(rl)
}
func (rl *ReportList) Read(json_str string) error {
dec := json.NewDecoder(strings.NewReader(json_str))
return dec.Decode(rl)
}
type Series struct {
Values []float64
Series map[string]*Series