Directories
¶
| Path | Synopsis |
|---|---|
|
1.0_variables
|
|
|
1.vars
command
|
|
|
2.constants
command
|
|
|
1.2_flowControl
|
|
|
1.simple
command
|
|
|
2.loops
command
|
|
|
3.switch
command
|
|
|
4.range
command
|
|
|
1.3_loops
|
|
|
1.loops
command
|
|
|
2.loopOverArray
command
|
|
|
3.loopOverMap
command
|
|
|
1.4_arrays
|
|
|
1.simple
command
In Go, an _array_ is a numbered sequence of elements of a specific length.
|
In Go, an _array_ is a numbered sequence of elements of a specific length. |
|
2.loopOverArray
command
|
|
|
3.byIndex
command
|
|
|
1.5_types
|
|
|
1.basicTypes
command
|
|
|
2.typeAssertion
command
|
|
|
3.strings
command
|
|
|
1.6_enums
|
|
|
1.enumSimple
command
|
|
|
2.enumWithMethods
command
|
|
|
3.enumWithPackage
command
|
|
|
1.7_slices
|
|
|
1.simple
command
|
|
|
2.iterate
command
|
|
|
3.append
command
|
|
|
4.variadic
command
|
|
|
1.8_maps
|
|
|
1.simple
command
|
|
|
2.instantiatele
command
|
|
|
3.withStructs
command
|
|
|
4.getByKey
command
|
|
|
5.withMake
command
|
|
|
6.literals
command
|
|
|
7.anotherExample1
command
|
|
|
8.delete
command
|
|
|
9.mutating
command
|
|
|
1.9_functions
|
|
|
1.simple
command
Packages
|
Packages |
|
2.variadic
command
|
|
|
3.returnValues
command
|
|
|
2.0_closures
|
|
|
1.simple
command
|
|
|
2.simple1
command
|
|
|
3.anonymous
command
|
|
|
4.counter
command
|
|
|
5.counter1
command
|
|
|
2.1_structs
|
|
|
1.simple
command
|
|
|
10.example
command
|
|
|
11.example
command
|
|
|
12.example
command
|
|
|
13.example
command
|
|
|
2.initializing
command
|
|
|
3.composition
command
|
|
|
4.composition
command
|
|
|
5.constructor
command
|
|
|
6.embedding
command
|
|
|
7.embedding
command
|
|
|
8.mutability
command
|
|
|
9.example
command
|
|
|
2.2_compositionAndEmbedding
|
|
|
1.composition
command
|
|
|
2.embedding
command
|
|
|
3.withPackages
command
|
|
|
4.methods
command
|
|
|
2.3_methods
|
|
|
1.simple
command
|
|
|
2.onString
command
|
|
|
3.onFloat
command
|
|
|
4.pointers
command
|
|
|
5.lists
command
|
|
|
6.moreMethods
command
|
|
|
2.4_pointers
|
|
|
1.simple
command
|
|
|
2.simple1
command
|
|
|
3.valueVsPointer
command
|
|
|
4.valueVsPointer
command
|
|
|
5.valueVsPointer
command
|
|
|
6.withMethods
command
|
|
|
2.6_errors
|
|
|
1.simple
command
|
|
|
2.simple
command
|
|
|
3.errorsPackageGithub
command
|
|
|
4.errorStruct
command
|
|
|
5.errorStruct
command
|
|
|
6.errorStruct
command
|
|
|
7.errors
command
|
|
|
8.errorString
command
|
|
|
9.errorPackage
command
|
|
|
9.errorPackage/apperrors
Package apperrors handes application errors
|
Package apperrors handes application errors |
|
2.7_concurrency
|
|
|
1.simple
command
|
|
|
10.stringChannelWithWaitGroups
command
|
|
|
11.boolChannel
command
|
|
|
12.select
command
|
|
|
12.select1
command
|
|
|
13.channelTimeout
command
|
|
|
14.selectAnother
command
|
|
|
15.channelsClose
command
|
|
|
16.concurrentFunctions
command
|
|
|
16.concurrentFunctionsWChannels
command
|
|
|
17.concurrentFunctionsWChannels
command
|
|
|
2.channels
command
|
|
|
3.channels
command
|
|
|
4.channels
command
|
|
|
4.channelsDeadlock
command
|
|
|
5.channelsClosing
command
|
|
|
5.channelsMore
command
|
|
|
5.concurrencyScheduling
command
|
|
|
6.waitGroups
command
|
|
|
7.recover
command
|
|
|
8.intChannel
command
|
|
|
9.stringChannel
command
|
|
|
2.8_packages
|
|
|
1.multiFiles
command
|
|
|
2.config
command
|
|
|
3.moduleNumbers
command
|
|
|
4.multiplePackages
command
|
|
|
4.multiplePackages/cat
by convention, use the same name of the package as thr folder name that contains it
|
by convention, use the same name of the package as thr folder name that contains it |
|
5.packagesWithSubpackages
command
|
|
|
5.packagesWithSubpackages/greet/de
german greet
|
german greet |
|
3.2_interface
|
|
|
1.simple
command
|
|
|
10.dependencyInjection
command
|
|
|
10.dependencyInjection/fancyprinter
Package fancyprinter implements a printer interface
|
Package fancyprinter implements a printer interface |
|
2.simple
command
|
|
|
3.simple
command
|
|
|
4.emptyInterface
command
|
|
|
5.inspectType
command
|
|
|
6.implementInterface
command
|
|
|
7.dependencyInjection
command
|
|
|
8.dependencyInjection
command
|
|
|
9.interfacesAndEmbedding
command
|
Click to show internal directories.
Click to hide internal directories.