Added some comments for myself
This commit is contained in:
		@@ -13,6 +13,9 @@ import (
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
// fx.In allows fx to inject multiple dependencies
 | 
			
		||||
 | 
			
		||||
// I think we could just put all thses in SetupRouter() but in this way we are first defining the dependencies we need
 | 
			
		||||
// and by using fx.In we say that whenever RouterParams was needed, inject dependensies into it and give it to SetupRouter()
 | 
			
		||||
type RouterParams struct {
 | 
			
		||||
	fx.In
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user