Is there a simple `parallel for` in golang like OpenMP?
问题 I'm trying to optimise a puzzle with parallel processing, for better performance. Ideally, in C99 w/ OpenMP, I should be able to do that with the help of a #pragma omp parallel for prior to a for loop in question, and then it should be up to the system to distribute the load between the CPUs. The official documentation for Go at https://golang.org/doc/effective_go.html#parallel, however, seems to suggest that for parallel processing I must, (0), manually get the number of cores from the