someslice := []*string{ &"fuck", &"pointers", } for i, value := range someSlice { someSlice[i] = &*value }