package main import "context" type Article struct { raw string } // Return the source text separated by paragraphs func (a Article) Chunks() []string { return []string{a.raw} // FIXME } // Article source type Source interface { Name() string Language() Language Len(context.Context) (int, error) Get(context.Context, int) (*Article, error) }