Generate go http handler