Re: [go-nuts] total newbie: parse html to plaintext

2018-02-19 Thread Shawn Milochik
It's hard to help without some more information.

   - What have you tried?
   - Is your source a file on disk, a string in memory, or from an
   htttp.Response.Body?
   - What do you mean by "parse"?

In general, you can have a look at the html[1] library, which should have
everything you need. If you want something with greater abstraction check
out goquery[2].

[1] https://godoc.org/golang.org/x/net/html

[2] https://github.com/PuerkitoBio/goquery

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[go-nuts] total newbie: parse html to plaintext

2018-02-19 Thread Thomas Kaufmann
Hi there,

I'm a C++-Developer. But how can I parse in Go a html-file to plaintext?

In C++ I use the index() method (with position parameter). Than the 
algorithm is simple. But in golang it seems very complicated. The solutions 
in the web are not satisfied.

Sorry. I'm a bloody newbie;-).

o-o

Thomas

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.