Title: Fix S1001 linter warning: use copy() instead of manual loop by rubensantoniorosa2704 · Pull Request #4166 · sqlc-dev/sqlc · GitHub
Open Graph Title: Fix S1001 linter warning: use copy() instead of manual loop by rubensantoniorosa2704 · Pull Request #4166 · sqlc-dev/sqlc
X Title: Fix S1001 linter warning: use copy() instead of manual loop by rubensantoniorosa2704 · Pull Request #4166 · sqlc-dev/sqlc
Description: Replaces a manual slice copy loop with Go's built-in copy() function to fix the staticcheck S1001 linter warning. Before: fields := make([]Field, len(s.Fields)) for i, f := range s.Fields { fields[i] = f } After: fields := make([]Field, len(s.Fields)) copy(fields, s.Fields) Why: Idiomatic Go code Fixes linter warning: "should use copy(to, from) instead of a loop" No functional changes, just optimization
Open Graph Description: Replaces a manual slice copy loop with Go's built-in copy() function to fix the staticcheck S1001 linter warning. Before: fields := make([]Field, len(s.Fields)) for i, f := range s.Fields { ...
X Description: Replaces a manual slice copy loop with Go's built-in copy() function to fix the staticcheck S1001 linter warning. Before: fields := make([]Field, len(s.Fields)) for i, f := range s.Fields {...
Opengraph URL: https://github.com/sqlc-dev/sqlc/pull/4166
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:1fad6ee6-f99a-bbb8-2518-58e2164018c5 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | AFAE:3D00EE:1BC219B:266A020:6A50A3BD |
| html-safe-nonce | 6c17be65a315cc25e095df0e4271794535c706321912865d3156e52258ed6852 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRkFFOjNEMDBFRToxQkMyMTlCOjI2NkEwMjA6NkE1MEEzQkQiLCJ2aXNpdG9yX2lkIjoiNzQwNTg4NzQ5NTU0MjQ0OTA4NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | f5401de3fbd9b165d6bf79240cd761cea688ac2a34734250d582f305f83391ac |
| hovercard-subject-tag | pull_request:2968481165 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/sqlc-dev/sqlc/pull/4166/files |
| twitter:image | https://avatars.githubusercontent.com/u/86082354?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/86082354?s=400&v=4 |
| og:image:alt | Replaces a manual slice copy loop with Go's built-in copy() function to fix the staticcheck S1001 linter warning. Before: fields := make([]Field, len(s.Fields)) for i, f := range s.Fields { ... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | d6dc8294eb500fa36bbc57472d61fe87c522f9c3c1d64f70f4926f66a66a7efb |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/sqlc-dev/sqlc git https://github.com/sqlc-dev/sqlc.git |
| octolytics-dimension-user_id | 136738596 |
| octolytics-dimension-user_login | sqlc-dev |
| octolytics-dimension-repository_id | 193160679 |
| octolytics-dimension-repository_nwo | sqlc-dev/sqlc |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 193160679 |
| octolytics-dimension-repository_network_root_nwo | sqlc-dev/sqlc |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7ac0ad2f2c7e4b9056617355fd9e33e22b0c8df9 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width