uber-go / mock

GoMock is a mocking framework for the Go programming language.
Apache License 2.0
1.82k stars 104 forks source link

mockgen: Sanitize the "any" package name #132

Closed r-hang closed 6 months ago

r-hang commented 6 months ago

When a package name is "any" mockgen will use that as a package name in the generated code which causes issues due to colliding with Go's "any" type. Update the sanitization logic to prevent this collision.