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 command
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 command
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 command
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 command
Echo1 prints its command-line arguments
Echo1 prints its command-line arguments
echo2 command
Echo2 prints its command-line arguments
Echo2 prints its command-line arguments
echo3 command
Echo3 prints is command-line arguments
Echo3 prints is command-line arguments
fetch command
Fetch prints the contnt found at each specified URL.
Fetch prints the contnt found at each specified URL.
fetchall command
Fetchall fetches URLs in parallel and reports their times and sizes.
Fetchall fetches URLs in parallel and reports their times and sizes.
hello command
lissajous command
Lissajous generates GIF animations of rantom Lissajous figures.
Lissajous generates GIF animations of rantom Lissajous figures.
lissajousFile command
Lissajous generates GIF animations of rantom Lissajous figures.
Lissajous generates GIF animations of rantom Lissajous figures.
server1 command
Server1 is a minimal "echo" server.
Server1 is a minimal "echo" server.
server2 command
Server2 is a minimal "echo" and counter server.
Server2 is a minimal "echo" and counter server.
server3 command
Server3 is a minimal "echo" (with headers) and counter server.
Server3 is a minimal "echo" (with headers) and counter server.
ch2
boiling command
Boiling prints the boiling point of water
Boiling prints the boiling point of water
cf command
CF converts its numeric argument to Celsius and Fahrenheit
CF converts its numeric argument to Celsius and Fahrenheit
echo4 command
Echo4 prints its command-line arguments.
Echo4 prints its command-line arguments.
ftoc command
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 command
Basename removes directory components and a .suffix
Basename removes directory components and a .suffix
basename2 command
Basename removes directory components and a .suffix
Basename removes directory components and a .suffix
comma command
Comma inserts commas in a non-negative integer string
Comma inserts commas in a non-negative integer string
mandelbrot command
Mandelbrot emits a PNG image of the Mandelbrot fractal
Mandelbrot emits a PNG image of the Mandelbrot fractal
surface command
Surface computes an SVG rendering of a 3-D surface function.
Surface computes an SVG rendering of a 3-D surface function.
ch4
append command
Append appends integers to a slice in place
Append appends integers to a slice in place
dedup command
Dedup eliminates adjacent duplicates in a []string slice
Dedup eliminates adjacent duplicates in a []string slice
nonempty command
Nonempty is an example of an in-place slice algorithm
Nonempty is an example of an in-place slice algorithm
rev command
Rev reverses a slice of ints in place
Rev reverses a slice of ints in place
rev2 command
Rev reverses an array of ints in place
Rev reverses an array of ints in place
rot command
Rot rotates a slice of ints
Rot rotates a slice of ints
sha256 command
Sha256 compares 2 crypto values
Sha256 compares 2 crypto values
ch8
clock1 command
clock2 command
countdown1 command
countdown2 command
countdown3 command
du1 command
du2 command
du3 command
netcat2 command
pipeline1 command
pipeline2 command
pipeline3 command
reverb1 command
reverb2 command
spinner command

Jump to

Keyboard shortcuts

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