What's the best way to convert from []uint8
to string
?
I'm using http://github.com/confluentinc/confluent-kafka-go/kafka
To read events from kafka. But it does not return plain string event.
It returns event with type []uint8
.
How can I convert this event from []uint8
to string
?