Skip to content
Snippets Groups Projects

all: use any instead of interface{}

Merged Warren Gifford requested to merge k/20220509-any into main

Created by: keegancsmith

Now that we require go1.18, we can use a builtin type alias for interface{}: any. I've updated all code except lib, which can be imported by external modules. That is currently pinned at go1.16. Additionally I had to rerun generate since rewriting generated go code will fail CI.

find -name '*.go' | xargs gofmt -s -r 'interface{} -> any' -w
git checkout lib
go generate ./...

Test Plan: CI will exercise that the code still compiles. Otherwise this is a noop.

Merge request reports

Merged by avatar (Jul 12, 2025 9:25pm UTC)

Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading