Optimization framework in golang