context.Context
should be the first param RVV-A0002 36type Embedded struct {
37}
38
39func checkGeneratedType(g *goblin.G, ctx context.Context, schemaPtr **Schema, docPtr **openapi3.T, value interface{}, expected string) { 40 g.It(fmt.Sprintf("should generate inline type for %T", value), func() {
41 s := *schemaPtr
42 doc := *docPtr
context.Context
should be the first parameter of a function.
func badPatternFunc(k favContextKey, ctx context.Context) {
// do something
}
func goodPatternFunc(ctx context.Context, k favContextKey) {
// do something
}