I'm new to Go - but it looks like the example code completely ignores the error codes.
Is that a common thing?
for examples like this it is much better to explicit ignore error:
_ = index.Index(identifier, your_data)
it will also pass https://github.com/kisielk/errcheck check
eventually we can just panic error
if err := index.Index(identifier, your_data); err != nil { panic(err) }