I have methods which returns the data in slice pointer, now i have to convert it into slice array. how to convert slice pointer to slice array.
peerRoundState, err := s.nodeview.PeerRoundStates()
fmt.Println("This return value is slice pointer", peerRoundState)
if err != nil {
return nil, err
}
//PeerRoundStates this is type of slice.
return &ConsensusResponse{
RoundState: s.nodeview.RoundState().RoundStateSimple(),
PeerRoundStates: peerRound,
}, nil
i want to convert peerRoundState type of slice pointer to PeerRoundStates slice array.