Go Programming, In 8 Hours, For Beginners! by Yao Ray

Go Programming, In 8 Hours, For Beginners! by Yao Ray

Author:Yao, Ray [Yao, Ray]
Language: eng
Format: epub
Publisher: Ray Yao's Books
Published: 2020-03-16T16:00:00+00:00


Summary

The break statement is used to terminate the loop.

Break statement also is used to terminate the case in switch statement.

The continue statement skips the current loop to execute the next one.

The goto statement can go to the specified code and execute them unconditionally.

(1) The syntax to define a function is as follows:

func function_name ( parameter type) type {

……

return …

}

(2) The syntax to call a function is as follows:

variable = function_name ( parameter type )

Variables defined within a function are called local variables.

Variables defined outside a function are called global variables.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.