go-chart/seq/provider.go

16 lines
259 B
Go
Raw Normal View History

2017-05-14 21:21:30 +02: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
}