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) }