package posts import ( "git.aiterp.net/rpdata/api/models" "github.com/globalsign/mgo/bson" ) // FindID finds a log post by ID. func FindID(id string) (models.Post, error) { mutex.RLock() defer mutex.RUnlock() return find(bson.M{"_id": id}) }