volume1/

directory
Version: v0.0.0-...-d41341d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 9, 2018 License: BSD-3-Clause

Directories

Path Synopsis
section1
hellogopher
A basic Hello Gopher program.
A basic Hello Gopher program.
section2
conditionals
Examples of conditional logic and impact on the flow of control.
Examples of conditional logic and impact on the flow of control.
declarenumerics
Various examples to declare Go's numeric types.
Various examples to declare Go's numeric types.
funwithfuncs
Various examples of functions in Go.
Various examples of functions in Go.
greetingspackage
Package greetingspackage is a demonstration package to show how to declare a package, create exported/unexported functions in the package, and create an exported variable from the package.
Package greetingspackage is a demonstration package to show how to declare a package, create exported/unexported functions in the package, and create an exported variable from the package.
hellogopheralias
An example of aliasing the fmt package as f.
An example of aliasing the fmt package as f.
lightswitch
An example to model a light switch using a boolean type.
An example to model a light switch using a boolean type.
loopdemo
Various examples of Go's for loop.
Various examples of Go's for loop.
olympicslaonwards
An example of using Go's iota enumerator to model the year and city where the summer Olympics took place.
An example of using Go's iota enumerator to model the year and city where the summer Olympics took place.
personalgreetings
An example of using a command line flag.
An example of using a command line flag.
repeatgreetings
An example of using a command line argument.
An example of using a command line argument.
stringbasics
String examples covering declaration, literal definition, accessing character at value and concatenating strings using the + operator.
String examples covering declaration, literal definition, accessing character at value and concatenating strings using the + operator.
switchdemo
An example of declaring a switch statement.
An example of declaring a switch statement.
trafficlights
An example of declaring a constant grouping with an iota enumerator.
An example of declaring a constant grouping with an iota enumerator.
usegreetings
An example of using functionality from a package.
An example of using functionality from a package.
usernamechecker
A username syntax checker for the GopherFace web application.
A username syntax checker for the GopherFace web application.
section3
declarearrays
Some examples of array declarations and showing how arrays are treated as values in Go.
Some examples of array declarations and showing how arrays are treated as values in Go.
emptyinterfacedemo
An example of an empty interface, and some useful things we can do with it.
An example of an empty interface, and some useful things we can do with it.
mapdemo
An example of building a map having keys representing nations, and values representing the respective nation's capital.
An example of building a map having keys representing nations, and values representing the respective nation's capital.
matrix
An example of a multidimensional array, a 3x4 matrix.
An example of a multidimensional array, a 3x4 matrix.
shapedemo
A demonstration program using the simpleshape package.
A demonstration program using the simpleshape package.
simpleshape
Package simpleshape is a simple interface for representing geometric shapes.
Package simpleshape is a simple interface for representing geometric shapes.
slicedemo
An example showing how to declare a slice and perform various operations using a slice.
An example showing how to declare a slice and perform various operations using a slice.
smpostexample
An example of creating a new instance of a Social Media Post type.
An example of creating a new instance of a Social Media Post type.
socialmedia
Package SocialMedia implements common functionality needed for social media web applications.
Package SocialMedia implements common functionality needed for social media web applications.
section4
bufferedchannel
An example of a buffered channel (asynchronous).
An example of a buffered channel (asynchronous).
channeldemo
An example of sending and receiving a value through a channel.
An example of sending and receiving a value through a channel.
channelrange
An example of ranging over a channel.
An example of ranging over a channel.
goroutinesdemo
An example of a goroutine.
An example of a goroutine.
goroutinesdemowithchannel
An example of using a channel to wait for a goroutine to complete.
An example of using a channel to wait for a goroutine to complete.
goroutinewithdelay
An example of a goroutine with a delay introduced so the goroutine can complete.
An example of a goroutine with a delay introduced so the goroutine can complete.
mutex
An example of solving the data race condition using a mutex.
An example of solving the data race condition using a mutex.
nilakantha
A concurrent computation of pi using Nilakantha's formula.
A concurrent computation of pi using Nilakantha's formula.
racedemo
An example of a data race condition.
An example of a data race condition.
waitgroup
An example of concurrently fetching web site URLs using a WaitGroup.
An example of concurrently fetching web site URLs using a WaitGroup.
section5
socialmedia
Package SocialMedia implements common functionality needed for social media web applications.
Package SocialMedia implements common functionality needed for social media web applications.
section6

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL