mirror of
https://github.com/d0zingcat/gocryptotrader.git
synced 2026-05-14 07:26:47 +00:00
* Subscriptions: Add List.AssetPairs * Subscriptions: Add Template and QualifiedChannel These fields separate the concept of what the channel is from the qualified resource name * Subscriptions: Add List.SetStates() * Subscriptions: Add List.QualifiedChannels * Subscriptions: Rename testsubs.EqualLists * Binance: Switch to ExpandTemplates * Binance: Update ConfigTest format * Subscriptions: Test Coverage improvements * Subscriptions: Reenterant List.ExpandTemplates * Subscriptions: Move templates from subscriptions to exchanges * Binance: Inline subscription template and improvements
14 lines
486 B
Cheetah
14 lines
486 B
Cheetah
{{- if eq .S.Channel "error1" }}
|
|
{{/* Error 1: Expand pairs but not assets, without specific asset */}}
|
|
{{- .PairSeparator -}}
|
|
{{- else if eq .S.Channel "error2" }}
|
|
{{/* Error 2: Runtime error from executing */}}
|
|
{{ .S.String 42 }}
|
|
{{- else if eq .S.Channel "error3" }}
|
|
{{/* Error 3: Incorrect number of asset entries */}}
|
|
{{- .AssetSeparator }}
|
|
{{- else if eq .S.Channel "error4" }}
|
|
{{/* Error 3: Incorrect number of pair entries */}}
|
|
{{- .PairSeparator }}
|
|
{{- end -}}
|