VY
Size: a a a
VY
AB
AB
AB
VY
AB
AB
AB
func (d Dictionary) Find(text []dictionary.Word) (dictionary.Word, int, int) {
/*
if d == nil {
return nil, 0, 0
}
*/
if len(text) > 0 {
text0 := text[0]
token := text0.Token
if token != "" {
if _, ok := d[token]; ok {
return d[token], 0, 0
}
}
}
return dictionary.Word{}, 0, 0
}
AB
AB
token = text[0].Token
даже это разбить можноAB
с