15 Commits

Author SHA1 Message Date
Eli Bendersky
41dd5d97b1 Add sample of logical operators in if statements
Fixes #494
2023-10-28 08:18:19 -07:00
Eli Bendersky
0650d74678 Slight rewording 2022-10-25 06:02:53 -07:00
Aditya Sood
9ba0fd08de
Minor addition to if-else text on declarations (#450)
* Minor addition to if-else text on declarations

Extremely minor addition to if-else text on declarations preceding conditionals, by explicitly clarifying that variables declared are only available in branches succeeding the declaration, not all the branches in the if-else ladder (i.e. preceding branches will not have it in their scope)

This edit might be redundant since variables in Golang can only be used after declaration, but to a complete novice the original wording of "...any variables declared in this statement are available in *all* branches..." might be a little misleading and appear to say that the variable is in-scope for the preceding branches as well (as this seems to be a very Golang-specific semantic that other high-level languages like C/C++, Java, Scala, Kotlin etc don't support; and so it will be a brand new paradigm for developers coming from such languages).

Thanks!

* Increment: Include changes in source .go file for #450
2022-10-25 06:00:36 -07:00
Andreas Deininger
da13e2fbe7
Improving links (http -> https) (#425) 2022-06-06 11:31:46 -07:00
Oleg Butuzov
646c8b39da bugfix (mmcgrana/gobyexample#294) sha1 sum calculator
This bugfix implements correct way to calculate source sha1 hash, before it will changed,
by propagation of unchanged sources.

This commit will also include regenerated static files and *.hash files.
2019-10-22 14:27:02 +03:00
Eli Bendersky
7c160440be Use tabs as the canonical source indentation in git
Space conversion is done during generation only. Fixes #192
2019-06-04 07:30:58 -07:00
Mark McGranaghan
518a807773 Rebuild 2015-02-24 19:13:33 -08:00
Steve Krulewitz
684013f5e0 Fix a few small typos. 2015-02-22 21:52:25 -08:00
Mark McGranaghan
afdf0cc2b4 add trailing newlines 2013-10-06 08:50:23 -07:00
Mark McGranaghan
e77dcdddd4 missing some generated files 2013-09-11 09:01:11 -07:00
Mark McGranaghan
0685950428 wrong word 2013-05-11 14:37:58 -07:00
Mark McGranaghan
ea6f0ec587 code 2012-10-17 13:49:15 -07:00
Mark McGranaghan
fa7065f07a spelling 2012-10-13 10:44:53 -07:00
Mark McGranaghan
b70e1e7f7c publish if/else 2012-10-13 09:17:44 -07:00
Mark McGranaghan
8daa226a48 lean into examples 2012-10-09 21:02:12 -07:00