Here is my kafka connection information in etcd :
kafka://user:[email protected]:9092?mechanism=PLAIN&protocol=SASL_PLAINTEXT When i get the information string from the etcd, i want to get the username user,password passwd and host 10.10.172.222:9092.
Now how can i parse Kafka connection information gracefully using Golang?