My Code :
type Link struct {
Href string `xml:"href,attr"`
}
var html Link = ""
func (s Entry) String() string {
links := string(s.Link)
}
I parsed a whole XML document to get the links and text, Now I want to append all the parsed data in html
variable to construct a nice view on the localhost. But s.Link
can't be converted to string data type maybe because type conversion only supports basic data-types , Any Solutions ?
Live demo : http://play.golang.org/p/7HRHusXLe2