interfaces icon indicating copy to clipboard operation
interfaces copied to clipboard

Code generation tools for Go.

Results 14 interfaces issues
Sort by recently updated
recently updated
newest added

Is it possible to include parameter names when generating an interface using `interfacer`? Currently, all the function parameter names are stripped so ``` FooBar(ctx context.Context, eventContext string, includePrivate bool, includeGeo...

enhancement
help wanted

Hi! Guys, I had problems, 1. imports itself - ex) `import "github.com/michilu/example/example"` 2. prefix has itself - ex) `*example.Two` `example.go` ```example.go package example import "context" //go:generate interfacer -for github.com/michilu/example/example.Zero -as...

help wanted

Would you accept a PR that allows specifying ignored embedded fields? My use case: ``` type DB struct { *underlyingDB.Client } func (db *DB) CreateUser() {} ``` I'd like to...

help wanted

I have my own PubSub package, which has a method `SubscribeWithCallback`. One of the arguments to this function is a function (used as a callback in this case)... ``` func...

bug
help wanted

I want to generate interfaces over the GCP Datastore library. This has four structs: Client, Transaction, Iterator, and Commit. Ideally I'd like to use interfacer to generate these all into...

enhancement
help wanted

We have noticed that go generate takes awfully long since we started using interfacer. Compared to mockgen, interfacer seems to take several orders of magnitude longer to run per file....

help wanted
performance

We've tried to run interfacer against `github.com/PagerDuty/go-pagerduty.Client`. When one of the function arguments is a package name, it generates: ``` ListAuditRecordsPaginated(context.Context, pagerduty.ListAuditRecordsOptions, func(go-pagerduty.AuditRecord) bool) ([]pagerduty.AuditRecord, error) ``` however, `go-pagerduty` isn't...

help wanted

Modify generator to detect if the dependency matches the new interface's package name and if so, skip adding the dependency (so skip import). Also, when generating the parameter package names,...

Currently if you want to generate an interface file and have it reside in the same package as things the interface might depend on then you end up with generated...

use strings.ContainsRune(nameEscapeChars, c) instead strings.IndexRune(nameEscapeChars, c) != -1