Alternatively, https://godoc.org/github.com/cznic/mathutil which has already typed each of those five line snippets for you.
On Thu, 2017-01-12 at 13:45 +1030, Dan Kortschak wrote: > In practice, it's better to implement a min(a, b T) T for each T that > you actually need (it's only 5 lines for each type and you probably > don't need every numerical type). -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.