I am using c++ and GO from the first answer of this post
I know that In c++ there is a default maximum stack size of 1MB (on windows). To increase that limit with with gcc and g++ I read this forum post. This answer seemed correct
Well, I don't know if you can set it to unlimited, but (assuming Windows) you can try passing
-Wl,--stack,<size>
(where<size>
is in bytes) to set the stack size.(From doing some tests, it seems the default is 2 MB)
How can I pass the same thing through cgo?