I'm afraid I don't think it is useful. But code like this from google must have it's reason.
var _ db.DB = (*DB)(nil)
It is from package code.google.com/p/leveldb-go
.
Please tell me the purpose of this.
I'm afraid I don't think it is useful. But code like this from google must have it's reason.
var _ db.DB = (*DB)(nil)
It is from package code.google.com/p/leveldb-go
.
Please tell me the purpose of this.