Go utility functions for dealing with common slice types.