diff --git a/README.md b/README.md index 9d1aa15..49e965b 100644 --- a/README.md +++ b/README.md @@ -38,8 +38,7 @@ type MyTask struct { func New(url string) *MyTask { return &MyTask{ - Url: url, - StatusCode: 0, + Url: url, } } diff --git a/example/simple-http-crawler/main.go b/example/simple-http-crawler/main.go index 86a8ef6..62499ed 100644 --- a/example/simple-http-crawler/main.go +++ b/example/simple-http-crawler/main.go @@ -13,8 +13,7 @@ type MyTask struct { func New(url string) *MyTask { return &MyTask{ - Url: url, - StatusCode: 0, + Url: url, } }