3 ms·
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/errchec
by roblaszczak 9y ago
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 https://github.com/kisielk/errcheck check
eventually we can just panic error
if err := index.Index(identifier, your_data); err != nil {
panic(err)
}