go-chart/seq/provider.go
2017-05-14 12:21:30 -07:00

15 lines
259 B
Go

package seq
import "time"
// Provider is a provider for values for a seq.
type Provider interface {
Len() int
GetValue(int) float64
}
// TimeProvider is a provider for values for a seq.
type TimeProvider interface {
Len() int
GetValue(int) time.Time
}