User Tools

Site Tools


go_fedora_packages

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
go_fedora_packages [2019/08/17 09:28]
rpjday [Stuff]
go_fedora_packages [2019/08/17 09:59] (current)
rpjday [Stuff]
Line 49: Line 49:
   * "​factored"​ import statement   * "​factored"​ import statement
   * uppercase symbols are automatically exported (math.Pi)   * uppercase symbols are automatically exported (math.Pi)
 +  * functions
 +    * return type *trails* function prototype
 +    * no need to duplicate consecutive arg types (x, y int)
 +    * multiple return values "​(string,​ int)"
 +    * named return values "func split(sum int) (x, y int) {"
 +  * variables
 +    * "var c, python, java bool"
 +    * initializers "var i, j int = 10, 20"
 +    * short implicit in-function form "k := 3"
 +  * type conversions are necessary
 +  * loops
 +    * for [init] ; cond ; [iter] {
 +    * for cond {             ​["​while"​]
 +    * 
go_fedora_packages.txt ยท Last modified: 2019/08/17 09:59 by rpjday