... | ... | @@ -131,7 +131,7 @@ func (subnet *Subnet) ID(int64) |
|
|
|
|
|
## Continue/Label abd Goto Statements
|
|
|
|
|
|
It is allowed to use the `continue to label` statements to simplify the code containing nested loops. The labels should be all upper case with underscores to separate the words. For example:
|
|
|
It is allowed to use the _continue-to-label_ statements to simplify the code containing nested loops. The labels should be all upper case with underscores to separate the words. For example:
|
|
|
|
|
|
```
|
|
|
OUTER_LOOP:
|
... | ... | @@ -146,7 +146,7 @@ for _, item := range list.Items { |
|
|
}
|
|
|
```
|
|
|
|
|
|
The `goto` statements MUST NOT be used as they generally make the code flow harder to follow, and there are alternative ways to achieve the same behavior.
|
|
|
The _goto_ statements MUST NOT be used as they generally make the code flow harder to follow, and there are alternative ways to achieve the same behavior.
|
|
|
|
|
|
# TypeScript Style
|
|
|
|
... | ... | |