```go
type SyncerParams struct {
fx.In //就是这一句的疑问
Lifecycle fx.Lifecycle
MetadataDS dtypes.MetadataDS
StateManager *stmgr.StateManager
ChainXchg exchange.Client
SyncMgrCtor chain.SyncManagerCtor
Host host.Host
Beacon beacon.Schedule
Verifier ffiwrapper.Verifier
}
```
还望有知道的大神给解答下,谢谢。
其实是隐藏了内嵌字段名,与下面等价
```
type SyncerParams struct {
In fx.In
Lifecycle fx.Lifecycle
MetadataDS dtypes.MetadataDS
StateManager *stmgr.StateManager
ChainXchg exchange.Client
SyncMgrCtor chain.SyncManagerCtor
Host host.Host
Beacon beacon.Schedule
Verifier ffiwrapper.Verifier
}
```
#4
更多评论
<a href="/user/focusonline" title="@focusonline">@focusonline</a> 谢谢回复,住大神码运昌隆。
#2