import ( "github.com/coreos/etcd/raft/raftpb" "encoding/json" ) func main() { cc := raftpb.ConfChange{ Type: raftpb.ConfChangeAddNode, NodeID: 100, Context: []byte("new node"), } ccBytes, _ := json.Marshal(cc) fmt.Println(string(ccBytes)) }In this example, we create a ConfChange structure with its Type, NodeID, and Context fields set accordingly. We then use the json.Marshal function to serialize this structure into a byte array. Finally, we print the resulting string representation of the byte array. Overall, the github.com.coreos.etcd.raft.raftpb package provides useful types and methods for working with the Raft consensus algorithm in Go.