Skip to content

Feature request: hints for pointer vs struct in value groups #184

Open
@kriskowal

Description

@kriskowal

We do a great job hinting when you provide a struct instead of a pointer to a struct, or the other way around. However, this magic does not appear to extend all the way to value groups.

I was stumped by a test:

	var p struct {
		fx.In

		ProcedureLists [][]*transport.Procedure `group:"yarpcfx"`
	}

This did not work because the value group contains slices of transport.Procedure structs, not pointers thereto.

Would be great if the Fx output hinted that it would populate the ProcedureLists were it without the pointer indirection.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions