Skip to content

Commit 50123c3

Browse files
authored
syntactic correction in readme
1 parent d95bdec commit 50123c3

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

README.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,24 @@ Exported variables and functions implemented till now :
1111
```go
1212
var Headers map[string]string // Set headers as a map of key-value pairs, an alternative to calling Header() individually
1313
var Cookies map[string]string // Set cookies as a map of key-value pairs, an alternative to calling Cookie() individually
14-
func Get(string) (string,error) // Takes the url as an argument, returns HTML string
15-
func GetWithClient(string, *http.Client) // Takes the url and a custom HTTP client as arguments, returns HTML string
16-
func Header(string, string) // Takes key,value pair to set as headers for the HTTP request made in Get()
17-
func Cookie(string, string) // Takes key, value pair to set as cookies to be sent with the HTTP request in Get()
18-
func HTMLParse(string) Root // Takes the HTML string as an argument, returns a pointer to the DOM constructed
19-
func Find([]string) Root // Element tag,(attribute key-value pair) as argument, pointer to first occurence returned
20-
func FindAll([]string) []Root // Same as Find(), but pointers to all occurrences returned
21-
func FindStrict([]string) Root // Element tag,(attribute key-value pair) as argument, pointer to first occurence returned with exact matching values
22-
func FindAllStrict([]string) []Root // Same as FindStrict(), but pointers to all occurrences returned
23-
func FindNextSibling() Root // Pointer to the next sibling of the Element in the DOM returned
24-
func FindNextElementSibling() Root // Pointer to the next element sibling of the Element in the DOM returned
25-
func FindPrevSibling() Root // Pointer to the previous sibling of the Element in the DOM returned
26-
func FindPrevElementSibling() Root // Pointer to the previous element sibling of the Element in the DOM returned
27-
func Children() []Root // Find all direct children of this DOM element
28-
func Attrs() map[string]string // Map returned with all the attributes of the Element as lookup to their respective values
29-
func Text() string // Full text inside a non-nested tag returned, first half returned in a non-nested one
30-
func FullText() string // Full text inside a nested/non-nested tag returned
31-
func SetDebug(bool) // Sets the debug mode to true or false; false by default
14+
func Get(string) (string,error){} // Takes the url as an argument, returns HTML string
15+
func GetWithClient(string, *http.Client){} // Takes the url and a custom HTTP client as arguments, returns HTML string
16+
func Header(string, string){} // Takes key,value pair to set as headers for the HTTP request made in Get()
17+
func Cookie(string, string){} // Takes key, value pair to set as cookies to be sent with the HTTP request in Get()
18+
func HTMLParse(string) Root {} // Takes the HTML string as an argument, returns a pointer to the DOM constructed
19+
func Find([]string) Root {} // Element tag,(attribute key-value pair) as argument, pointer to first occurence returned
20+
func FindAll([]string) []Root {} // Same as Find(), but pointers to all occurrences returned
21+
func FindStrict([]string) Root {} // Element tag,(attribute key-value pair) as argument, pointer to first occurence returned with exact matching values
22+
func FindAllStrict([]string) []Root {} // Same as FindStrict(), but pointers to all occurrences returned
23+
func FindNextSibling() Root {} // Pointer to the next sibling of the Element in the DOM returned
24+
func FindNextElementSibling() Root {} // Pointer to the next element sibling of the Element in the DOM returned
25+
func FindPrevSibling() Root {} // Pointer to the previous sibling of the Element in the DOM returned
26+
func FindPrevElementSibling() Root {} // Pointer to the previous element sibling of the Element in the DOM returned
27+
func Children() []Root {} // Find all direct children of this DOM element
28+
func Attrs() map[string]string {} // Map returned with all the attributes of the Element as lookup to their respective values
29+
func Text() string {} // Full text inside a non-nested tag returned, first half returned in a non-nested one
30+
func FullText() string {} // Full text inside a nested/non-nested tag returned
31+
func SetDebug(bool) {} // Sets the debug mode to true or false; false by default
3232
```
3333

3434
`Root` is a struct, containing three fields :

0 commit comments

Comments
 (0)