0
当我查看cryptogen
(一个结构命令)配置文件。我看到了符号。yaml中的“<<”和“&”是什么意思?
Profiles:
SampleInsecureSolo:
Orderer:
<<: *OrdererDefaults ## what is the `<<`
Organizations:
- *ExampleCom ## what is the `*`
Consortiums:
SampleConsortium:
Organizations:
- *Org1ExampleCom
- *Org2ExampleCom
上面有两个符号的<<
和*
。
Application: &ApplicationDefaults # what is the `&` mean
Organizations:
正如你所见,还有另一个符号&
。 我不知道有什么意思。我甚至没有通过审查源代码(fabric/common/configtx/tool/configtxgen/main.go
)