Skip to content
This repository has been archived by the owner on Mar 22, 2019. It is now read-only.

added documentation for inject:"inline" #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions inject.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,18 @@
//
// The usage pattern for the library involves struct tags. It requires the tag
// format used by the various standard libraries, like json, xml etc. It
// involves tags in one of the three forms below:
// involves tags in one of the four forms below:
//
// `inject:""`
// `inject:"inline"`
// `inject:"private"`
// `inject:"dev logger"`
//
// The first no value syntax is for the common case of a singleton dependency
// of the associated type. The second triggers creation of a private instance
// for the associated type. Finally the last form is asking for a named
// dependency called "dev logger".
// of the associated type. The second is used for embedded structs that have
// fields that need to be populated. The third triggers creation of a private
// instance for the associated type. Finally the last form is asking for a
// named dependency called "dev logger".
package inject

import (
Expand Down