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:
@ -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
|
||||
|
Reference in New Issue
Block a user