// IntSlice converts a slice of int pointers to a slice of
// int values. Elements that are nil are converted to its zero value.
IntSlice converts a slice of int pointers to a slice of
int values. Elements that are nil are converted to its zero value.
// IntSlice converts a slice of int pointers to a slice of // int values . Elements that are nil are converted to its zero value .
func IntSlice(src []*int) []int {
	dst := make([]int, len(src))
	for i := 0; i < len(src); i++ {
		if s := src[i]; s != nil {
			dst[i] = *s
		} else {
			dst[i] = 0
		}
	}
	return dst
}
func IntSlice ( src [ ] * int ) [ ] int { dst := make ( [ ] int , len ( src ) ) for i := 0 ; i < len ( src ) ; i ++ { if s := src [ i ] ; s != nil { dst [ i ] = * s } else { dst [ i ] = 0 } } return dst }
IntSlice converts a slice of int pointers to a slice of
int values.
IntSlice converts a slice of int pointers to a slice of int values .