Skip to content

Commit

Permalink
fix fmt import
Browse files Browse the repository at this point in the history
  • Loading branch information
c9s committed Dec 14, 2020
1 parent cabd8f8 commit 81c7d3c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pkg/types/interval.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package types

import (
"encoding/json"
"fmt"
"time"
)

Expand Down Expand Up @@ -34,7 +35,7 @@ type IntervalSlice []Interval

func (s IntervalSlice) StringSlice() (slice []string) {
for _, interval := range s {
slice = append(slice, `"` + interval.String() + `"`)
slice = append(slice, `"`+interval.String()+`"`)
}
return slice
}
Expand Down Expand Up @@ -73,3 +74,7 @@ type IntervalWindow struct {
// The windows size of the indicator (EWMA and SMA)
Window int
}

func (iw IntervalWindow) String() string {
return fmt.Sprintf("%s (%d)", iw.Interval, iw.Window)
}

0 comments on commit 81c7d3c

Please sign in to comment.