I'm new to Go - but it looks like the example code completely ignores the error codes.
Is that a common thing?
Is that a common thing?
https://github.com/blevesearch/blevesearch.github.io-hugo/is...
You can ignore error codes in go by assigning them to the special variable "_", but, outside of very short toy examples, it is a huge warning sign for terrible code. It's certainly not common to ignore errors in Go.
_ = 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) }