Go for loop




1 full form for

For cannot have parentheses like Java C ා

For I: = 0; I < 10; I + + {braces must be put here again


2. Omit the pre and post statements

for sum < 1000 {


The complete omission of for is equivalent to an endless loop

The following code loops until the sum value exceeds the maximum int value

Go language development and communicationQQ group 857263711

Keep improving
I hope everyone can find their favorite way to live and work.


Recommended Today

Interpretation of laravel kernel — HTTP kernel

Http Kernel HTTP kernel is used in laravel to concatenate the core components of the framework for network request, simply speaking, as long as it is through thepublic/index.phpTo start the framework, you will use HTTP kernel, while others will use HTTP kernelartisanThe console kernel is used for processing commands, scheduled tasks, and queue start frameworks. […]