2017-08-14 17:14:00 +02:00
|
|
|
package complete
|
|
|
|
|
|
|
|
// PredictSet expects specific set of terms, given in the options argument.
|
|
|
|
func PredictSet(options ...string) Predictor {
|
|
|
|
return predictSet(options)
|
|
|
|
}
|
|
|
|
|
|
|
|
type predictSet []string
|
|
|
|
|
2017-12-05 19:24:04 +01:00
|
|
|
func (p predictSet) Predict(a Args) []string {
|
|
|
|
return p
|
2017-08-14 17:14:00 +02:00
|
|
|
}
|