I need a simple Go function. The contract of the function is as follows
/**
getText:
this function should accept a URL, use the [login to view URL] method to fetch the URL and then extract text only content from H1, H2, H3, P, DIV, UL, OL, U, B, A, TITLE, META tags within the page. The values should be separated by a new line.
@param url string: the URL of the page to fetch
@return string: A string representing the text content of the H1, H2, H3, P, DIV, UL, OL, U, B, A, TITLE, META tags within
func getText(url string) string;
Hello!
I like do this work for you
I have some questions for example this
<div>
Hello
<h1>test</h1>
</div>
the result is
Hello
Test
or
Hello Test
because both text are inside of div
$20 USD Om 1 dag
0,0 (0 omdömen)
0,0
0,0
3 frilansar lägger i genomsnitt anbud på $23 USD för detta uppdrag