Finding a near PD matrix

Hi go’ers. I can’t seem to find anything in go (yet) that can return a near matrix that is positive definite to a matrix that is npd (or spd) where both are Hermitian. This would be something like R’s nearPD(), or posdefify(). Any thoughts? Thanks in advance.