Skip to content

go fix#29

Open
alexandear wants to merge 1 commit intoVinovest:mainfrom
alexandear-org:refactor/modernize
Open

go fix#29
alexandear wants to merge 1 commit intoVinovest:mainfrom
alexandear-org:refactor/modernize

Conversation

@alexandear
Copy link
Copy Markdown

This PR is the result of running go fix ./... (the go version is 1.26) and manual replacing of interface{} with any.

Follows #21

Copilot AI review requested due to automatic review settings April 8, 2026 18:54
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR applies go fix ./... updates (run with Go 1.26 per description) and modernizes the codebase by replacing interface{} usages with any, along with related reflect/type helper updates.

Changes:

  • Replace interface{} with any across code, docs, tests, and examples.
  • Update reflection kind checks to use reflect.Pointer and simplify type acquisition via reflect.TypeFor[...]().
  • Minor whitespace/comment cleanups in tests and examples.

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
types/types.go Updates JSONText documentation to use any.
sqlx.go Replaces pointer-kind checks and updates SliceScan/MapScan docs to any.
sqlx_test.go Updates comments and test case naming to any.
sqlx_context_test.go Trims comment whitespace; updates comment to any.
reflectx/reflect.go Uses reflect.Pointer in reflection helpers.
named.go Updates map conversion docs/types to any and uses reflect.TypeFor.
named_context.go Updates NamedQueryContext docs to map[string]any.
examples/preparedstatements/main.go Updates example parameter maps to map[string]any.
examples/named/main.go Updates example parameter maps/comments to any and removes trailing whitespace.
examples/bulk/main.go Updates bulk example argument type to []map[string]any.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread types/types.go
Comment thread sqlx.go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants