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
)