0
0

Merge pull request #223 from donhcd/fixTextFieldGoString

Fix invalid fmt string using analysis.Analyzer
This commit is contained in:
Marty Schoch 2015-08-03 14:04:20 -04:00
commit e255ff52b3

View File

@ -69,7 +69,7 @@ func (t *TextField) Value() []byte {
}
func (t *TextField) GoString() string {
return fmt.Sprintf("&document.TextField{Name:%s, Options: %s, Analyzer: %s, Value: %s, ArrayPositions: %v}", t.name, t.options, t.analyzer, t.value, t.arrayPositions)
return fmt.Sprintf("&document.TextField{Name:%s, Options: %s, Analyzer: %v, Value: %s, ArrayPositions: %v}", t.name, t.options, t.analyzer, t.value, t.arrayPositions)
}
func NewTextField(name string, arrayPositions []uint64, value []byte) *TextField {