Skip to content

Commit

Permalink
Add doc for a private method for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
Glib Smaga committed Jun 1, 2017
1 parent f9b1879 commit 1bfa693
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dig.go
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,8 @@ func getParameterDependencies(t reflect.Type) ([]reflect.Type, error) {
return deps, nil
}

// Returns a new Param parent object with all the dependency fields
// populated from the dig container.
func (c *Container) getParameterObject(t reflect.Type) (reflect.Value, error) {
dest := reflect.New(t).Elem()
result := dest
Expand Down

0 comments on commit 1bfa693

Please sign in to comment.