From 32c7b131e0afc5a368a954f2d3ad5975dd619503 Mon Sep 17 00:00:00 2001 From: Fredrik Enestad Date: Fri, 10 Aug 2018 14:37:02 +0200 Subject: [PATCH] added documentation for inline --- inject.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/inject.go b/inject.go index 300b9a3..c3d20a0 100644 --- a/inject.go +++ b/inject.go @@ -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 (