Skip to content

Commit 291f625

Browse files
committed
[doc] update example & install
1 parent 629227c commit 291f625

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

README.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,13 @@ With Colly you can easily extract structured data from websites, which can be us
3232
## Example
3333

3434
```go
35+
36+
import (
37+
"fmt"
38+
39+
"github.com/gocolly/colly/v2"
40+
)
41+
3542
func main() {
3643
c := colly.NewCollector()
3744

@@ -52,17 +59,8 @@ See [examples folder](https://github.com/gocolly/colly/tree/master/_examples) fo
5259

5360
## Installation
5461

55-
Add colly to your `go.mod` file:
62+
`go get github.com/gocolly/colly/v2`
5663

57-
```
58-
module github.com/x/y
59-
60-
go 1.14
61-
62-
require (
63-
github.com/gocolly/colly/v2 latest
64-
)
65-
```
6664

6765
## Bugs
6866

0 commit comments

Comments
 (0)