schmurfy / chipi

context.Context should be the first param RVV-A0002
Anti-pattern
Minor
2 months agoa year old
context.Context should be the first parameter of a function
 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