github.com/seeker-insurance/kit@v0.0.13/db/mongo/queries/queries.go (about)

     1  package queries
     2  
     3  import (
     4  	"time"
     5  	"github.com/globalsign/mgo/bson"
     6  )
     7  
     8  func TimestampUpdate(name string) bson.M {
     9  	return bson.M{
    10  		"$set": bson.M{
    11  			name: time.Now(),
    12  		},
    13  	}
    14  }