Skip to content

Commit c0844c3

Browse files
committed
DOM: Deprecate ContainerFactory#FromAny() method
This should never be part of this interface. Its implementation is very opiononated and can be achieved by various ways by caller. Deprecate and remove it later. Signed-off-by: Richard Kosegi <richard.kosegi@gmail.com>
1 parent bc350e0 commit c0844c3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

dom/types.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,8 @@ type ContainerFactory interface {
199199
// FromProperties is similar to FromMap except that keys are parsed into path before inserting into ContainerBuilder
200200
FromProperties(in map[string]interface{}) ContainerBuilder
201201
// FromAny creates ContainerBuilder from any object. Any error encountered in process will result in panic.
202-
// This method uses YAML codec internally to perform translation between raw interface and map
202+
// This method uses YAML codec internally to perform translation between raw interface and map.
203+
// Deprecated, do not use. Same can be simply achieved by various ways by caller himself.
203204
FromAny(v interface{}) ContainerBuilder
204205
}
205206

0 commit comments

Comments
 (0)