2017-07-18 14:15:54 +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-07 16:57:05 +00:00
|
|
|
func (p predictSet) Predict(a Args) []string {
|
|
|
|
return p
|
2017-07-18 14:15:54 +00:00
|
|
|
}
|