Skip to content

refactor: replace interface{} with any (Go 1.18+)#118

Merged
halspang merged 1 commit into
mainfrom
modernize/go-cleanup
Mar 13, 2026
Merged

refactor: replace interface{} with any (Go 1.18+)#118
halspang merged 1 commit into
mainfrom
modernize/go-cleanup

Conversation

@halspang

Copy link
Copy Markdown
Member

Replace all non-generated interface{} occurrences with the any type alias introduced in Go 1.18:

  • backend/client.go: TaskHubClient interface and implementation
  • task/orchestrator.go: CallActivity, CallSubOrchestrator signatures
  • backend/workitem.go: Properties maps
  • backend/sqlite/sqlite.go: SQL argument slices
  • backend/postgres/postgres.go: SQL argument slices

Generated files (protos, mocks) are left unchanged as they will be updated when regenerated.

Replace all non-generated interface{} occurrences with the any type
alias introduced in Go 1.18:
- backend/client.go: TaskHubClient interface and implementation
- task/orchestrator.go: CallActivity, CallSubOrchestrator signatures
- backend/workitem.go: Properties maps
- backend/sqlite/sqlite.go: SQL argument slices
- backend/postgres/postgres.go: SQL argument slices

Generated files (protos, mocks) are left unchanged as they will be
updated when regenerated.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@halspang
halspang merged commit 471753a into main Mar 13, 2026
7 of 10 checks passed
@NickCraver
NickCraver deleted the modernize/go-cleanup branch June 8, 2026 19:36
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