go-chart/seq/provider.go

16 lines
259 B
Go
Raw Normal View History

2017-05-14 15:21:30 -04:00
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
}