Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
In order to add these functions in the standard library, we need generics. I don't think it's worth adding predeclared functions for these. Closing this issue in favor of generics; it can be reopened if generics is not added to the language.
In the meantime see https://golang.org/wiki/SliceTricks for possibly higher quality snippets.