I am writing a program by Go. In this program, I access to a website and in this website, it will print a string. I want to get this string for next process. For example:
I access by curl and the returned string will like that:
curl localhost:4000
abc_example
I need to get "abc_example" for next process in my program. Now, this problem was solved.
Actually, my result will be a JSON like that:
{"name":"xyz_example"}
How can I parse this string and just get "xyz_example"
I am a newbie in Go. May you help me. Thank you!