Hello, i am developing a cpanel based software ( well it’s not the topic )
actually i want to get contents from a url and want to convert that content to string because i tried by general way it’s giving uint8 byet code.
here is the URL : http://myip.cpanel.net/v1.0/
this url shows our IPv4 Address, i want to read that IPv4 Address in a variable and want to convert that ip to string so that i can use that easily.
actually as i told i am developing a software that requires license and license is based on IP so i want to convert it as string so that i can use that IP easily like showing Your IPv4 Address : fmt.Printf(ip)
if ip == “x.x.x.x” {
fmt.Println(“yap”)
}
else {
fmt.Println(“you’re not allowed”)
}
hope you’re understood, so please tell me a way how can i read contents from that url and convert that content to a string