Mergesort in Go Simple mergesort implemented in Golang. Aside from sorting a slice of ints, it counts the number of inversions necessary to sort the input. Test with go test. Also included a similar implementation using Python 3 in mergesort.py.