syntax highlighting

This commit is contained in:
unknown 2021-10-28 01:20:03 +07:00
parent 8bc2c1808d
commit 2cc2b811ed

View File

@ -11,7 +11,7 @@ Import
# Example Use Cases # Example Use Cases
#### Get Search Results #### Get Search Results
``` ```go
func main() { func main() {
hunsen := goduckgo.Search(goduckgo.Query{Keyword: "duck"}) hunsen := goduckgo.Search(goduckgo.Query{Keyword: "duck"})
fmt.Print(hunsen.Results) fmt.Print(hunsen.Results)
@ -19,7 +19,7 @@ func main() {
``` ```
#### Get Search Result Image #### Get Search Result Image
``` ```go
func main() { func main() {
hunsen := goduckgo.Search(goduckgo.Query{Keyword: "duck"}) hunsen := goduckgo.Search(goduckgo.Query{Keyword: "duck"})
for _, somtam := range hunsen.Results { for _, somtam := range hunsen.Results {
@ -30,7 +30,7 @@ func main() {
} }
``` ```
#### Specific P and S #### Specific P and S
``` ```go
func main() { func main() {
hunsen := goduckgo.Search(goduckgo.Query{Keyword: "duck", P: "1", S: "200"}) hunsen := goduckgo.Search(goduckgo.Query{Keyword: "duck", P: "1", S: "200"})
fmt.Print(hunsen.Results) fmt.Print(hunsen.Results)