title: Inlining functions in Go
body: <p>Go has a nice generic implementation of introsort using the generic <code>sort.Interface</code>. But one of the advantages of C++'s <code>std::sort</code> is that you can specify a compare functor which is inlined and unnecessary function calls are omitted.
  Can we force the current native Go compilers somehow to inline those <code>sort.Swap</code> and <code>sort.Less</code> calls? I do not consider <code>gccgo</code> because it gives us terrible results compared to the native compiler.</p>