2017-09-06 14:20:06 +00: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-11-04 11:02:46 +00:00
|
|
|
func (p predictSet) Predict(a Args) []string {
|
|
|
|
return p
|
2017-09-06 14:20:06 +00:00
|
|
|
}
|