Documentation
¶
Index ¶
- Constants
- func TArrays()
- func TBlocksAndScopes()
- func TControlFlow()
- func TConversion()
- func TDefer()
- func TExportedNames()
- func TForLoops()
- func TFunction()
- func TImports()
- func TIota()
- func TLoop()
- func TMaps()
- func TNumericConstants()
- func TPackages()
- func TPointers()
- func TSlices()
- func TStructs()
- func TTypes()
- func TVariables()
- type Vertex
- type Vertices
Constants ¶
View Source
const ( // Create a huge number by shifting a 1 bit left 100 places. // In other words, the binary number that is 1 followed by 100 zeroes. Big = 1 << 100 // An untyped constant takes the type needed by its context. // Shift it right again 99 places, so we end up with 1<<1, or 2. Small = Big >> 99 )
parenthesized, "factored" const statement. Only need to use "const" 1 time Numeric constants are high-precision values.
Variables ¶
This section is empty.
Functions ¶
func TBlocksAndScopes ¶
func TBlocksAndScopes()
TBlocksAndScopes resume https://golang.org/ref/spec#Blocks e https://golang.org/ref/spec#Declarations_and_scope
func TLoop ¶
func TLoop()
TLoop does ... The basic for loop has three components separated by semicolons:
the init statement: executed before the first iteration the condition expression: evaluated before every iteration the post statement: executed at the end of every iteration
The init statement will often be a short variable declaration The variables declared there are visible only in the scope of the for statement. The loop will stop iterating once the boolean condition evaluates to false.
func TPointers ¶
func TPointers()
TPointers resume https://golang.org/ref/spec#Pointer_types (data type, initiation, address operator and dereferencing)
Types ¶
Click to show internal directories.
Click to hide internal directories.