String ke ObjectId Mongodb Golang

objID, err := primitive.ObjectIDFromHex(hexString)
if err != nil {
  panic(err)
}
mohammad ghari