Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Allow Custom Name Provider By Method #320

@Ren0503

Description

@Ren0503

Currently, when define provider as a struct or pointer like this:

module.NewProvider(&Service{Value: "service"})

The name of provider is a name of struct, but need function to custom it like:

func (Service) ProvideName() string {
  return "CustomService"
}

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

Status

Released

Relationships

None yet

Development

No branches or pull requests

Issue actions