User Tools

Site Tools


golangbot_tutorial

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
golangbot_tutorial [2018/04/16 10:20]
rpjday [Types]
golangbot_tutorial [2018/04/16 10:53] (current)
rpjday [Constants]
Line 114: Line 114:
  
   * Value assigned to ''​const''​ must be known at compile time; cannot require any function execution.   * Value assigned to ''​const''​ must be known at compile time; cannot require any function execution.
-  * Untyped constants have a //default// type associated with them and they supply it if and only if a line of code demands it.+  * Untyped constants have a //default// type associated with them and they supply it if and only if a line of code demands it. You can always created a typed constant if you want: 
 +<​code>​ 
 +const typedhello string = "Hello World"​ 
 +</​code>​
  
 ===== Functions and Packages ===== ===== Functions and Packages =====
golangbot_tutorial.txt · Last modified: 2018/04/16 10:53 by rpjday