This is a Golang version subset of the "state-of-the-art" R package PerformanceAnalytics.
The code provided is based on the "as is" principle. Use it at your own risk.
OLS is tested with reference to both python statsmodels(sm) and R lm package samples