go-programming-language

module
v0.0.0-...-b2ec0c4 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2020 License: MIT

README

go-programming-language

Code samples that go along with the book The Go Programming Language by Alan A. A. Donovan & Brian W. Kernighan.

There may be some articles coming soon. Samples are written with .NET Core 3.1 in C# and F#. These are all console applications (for now), so they should run cross-platform.

  • 1 - Tutorial
  • 2 - Program Structure
  • 3 - Basic Data Types

Directories

Path Synopsis
ch1
dup1
Dup1 prints the text of each line that appears more than once in the standard input, preceded by its count
Dup1 prints the text of each line that appears more than once in the standard input, preceded by its count
dup2
Dup2 prints the count and text of lines that appear more than once in the input.
Dup2 prints the count and text of lines that appear more than once in the input.
dup3
Dup3 prints the count and text of lines that appear more than once in the named input files.
Dup3 prints the count and text of lines that appear more than once in the named input files.
echo1
Echo1 prints its command-line arguments
Echo1 prints its command-line arguments
echo2
Echo2 prints its command-line arguments
Echo2 prints its command-line arguments
echo3
Echo3 prints is command-line arguments
Echo3 prints is command-line arguments
fetch
Fetch prints the contnt found at each specified URL.
Fetch prints the contnt found at each specified URL.
fetchall
Fetchall fetches URLs in parallel and reports their times and sizes.
Fetchall fetches URLs in parallel and reports their times and sizes.
lissajous
Lissajous generates GIF animations of rantom Lissajous figures.
Lissajous generates GIF animations of rantom Lissajous figures.
lissajousFile
Lissajous generates GIF animations of rantom Lissajous figures.
Lissajous generates GIF animations of rantom Lissajous figures.
server1
Server1 is a minimal "echo" server.
Server1 is a minimal "echo" server.
server2
Server2 is a minimal "echo" and counter server.
Server2 is a minimal "echo" and counter server.
server3
Server3 is a minimal "echo" (with headers) and counter server.
Server3 is a minimal "echo" (with headers) and counter server.
ch2
boiling
Boiling prints the boiling point of water
Boiling prints the boiling point of water
cf
CF converts its numeric argument to Celsius and Fahrenheit
CF converts its numeric argument to Celsius and Fahrenheit
echo4
Echo4 prints its command-line arguments.
Echo4 prints its command-line arguments.
ftoc
Ftoc prints two Fahrenheit-to-Celsius conversions.
Ftoc prints two Fahrenheit-to-Celsius conversions.
tempconv
Package tempconf performs Celsius and Fahrenheit temperature computations.
Package tempconf performs Celsius and Fahrenheit temperature computations.
ch3
basename1
Basename removes directory components and a .suffix
Basename removes directory components and a .suffix
basename2
Basename removes directory components and a .suffix
Basename removes directory components and a .suffix
comma
Comma inserts commas in a non-negative integer string
Comma inserts commas in a non-negative integer string
mandelbrot
Mandelbrot emits a PNG image of the Mandelbrot fractal
Mandelbrot emits a PNG image of the Mandelbrot fractal
surface
Surface computes an SVG rendering of a 3-D surface function.
Surface computes an SVG rendering of a 3-D surface function.
ch4
append
Append appends integers to a slice in place
Append appends integers to a slice in place
dedup
Dedup eliminates adjacent duplicates in a []string slice
Dedup eliminates adjacent duplicates in a []string slice
nonempty
Nonempty is an example of an in-place slice algorithm
Nonempty is an example of an in-place slice algorithm
rev
Rev reverses a slice of ints in place
Rev reverses a slice of ints in place
rev2
Rev reverses an array of ints in place
Rev reverses an array of ints in place
rot
Rot rotates a slice of ints
Rot rotates a slice of ints
sha256
Sha256 compares 2 crypto values
Sha256 compares 2 crypto values
ch8
du1
du2
du3

Jump to

Keyboard shortcuts

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