-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
102401339 - work2 #88
base: main
Are you sure you want to change the base?
Conversation
Copilot
AI
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 3 out of 5 changed files in this pull request and generated 2 suggestions.
Files not reviewed (2)
- work2/renbaoshuo/.gitignore: Language not supported
- work2/renbaoshuo/fzu/go.mod: Language not supported
Comments skipped due to low confidence (1)
work2/renbaoshuo/fzu/main.go:88
- [nitpick] The variable name 'regexp' is too generic. It should be renamed to 'totalPagesRegexp' for clarity.
regexp := regexp.MustCompile(patternTotalPages)
work2/renbaoshuo/fzu/main.go
Outdated
|
||
resp, err := client.Get(url) | ||
if err != nil { | ||
fmt.Printf("Error occurred while getting %s: %s", url, err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The error message should specify that it's an HTTP GET request. Suggested: "Error occurred while performing HTTP GET request to %s: %s".
fmt.Printf("Error occurred while getting %s: %s", url, err) | |
fmt.Printf("Error occurred while performing HTTP GET request to %s: %s", url, err) |
Copilot is powered by AI, so mistakes are possible. Review output carefully before use.
本 Pull Request 希望使用 merge 形式合并,而非 squash merge / rebase merge
To Do