Skip to content

Commit

Permalink
fix: added back pruned bundle code
Browse files Browse the repository at this point in the history
  • Loading branch information
johnabass committed Sep 18, 2023
1 parent d297e71 commit 03e1db0
Show file tree
Hide file tree
Showing 3 changed files with 624 additions and 17 deletions.
34 changes: 17 additions & 17 deletions touchbundle/bundle.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,24 +88,24 @@ var (
//
// For example:
//
// app := fx.New(
// touchbundle.Provide(MyMetrics{}),
// fx.Invoke(
// func(m MyMetrics) {
// // m's metric fields will have been populated
// },
// ),
// )
// app := fx.New(
// touchbundle.Provide(MyMetrics{}),
// fx.Invoke(
// func(m MyMetrics) {
// // m's metric fields will have been populated
// },
// ),
// )
//
// app := fx.New(
// touchbundle.Provide((*MyStruct)(nil)),
// fx.Invoke(
// func(m *MyMetrics) {
// // m's metric fields will have been populated
// // m will point to a distinct, new instance of MyMetrics
// },
// ),
// )
// app := fx.New(
// touchbundle.Provide((*MyStruct)(nil)),
// fx.Invoke(
// func(m *MyMetrics) {
// // m's metric fields will have been populated
// // m will point to a distinct, new instance of MyMetrics
// },
// ),
// )
func Provide(prototype interface{}) fx.Option {
var (
componentType = reflect.TypeOf(prototype)
Expand Down
Loading

0 comments on commit 03e1db0

Please sign in to comment.