goobook

module
v0.0.0-...-020f0e2 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2020 License: MIT

README

Sources for "The Go Programming Language" by Donovan and Kernighan

My sources for the leaning GoLang , book "The Go Programming Language" by Donovan and Kernighan, folders split is by chapter in the book

Sometimes they repeat the original code, and sometimes there are going to be soime variations to test my own understanding

TODO

chapters

  • - chapter 6
  • - chapter 7
  • - chapter 8
  • - chapter 9
  • - chapter 10
  • - chapter 11
  • - chapter 12
  • - chapter 13

DONE

  • - chapter 1
  • prepare for offline learning, stopped at : 2.6.2. Package Initialization
    • - download all needed stuff
  • - chapter 2
  • - chapter 3
  • - chapter 4
  • - chapter 5

Notes

  1. Cross-copiling for Linux AMD65 arch, as easy as running :
 GOOS=linux GOARCH=amd64 go build main.go

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.
echo1_2 command
Exercise 1.2 Modification of the echo programm taht prints index and value of each arguments one per line
Exercise 1.2 Modification of the echo programm taht prints index and value of each arguments one per line
echo1_3 command
Echo2 prints its comand-line arguments
Echo2 prints its comand-line arguments
echo2 command
Echo2 prints its comand-line arguments
Echo2 prints its comand-line arguments
echo3 command
Echo3 prints command-line arguments, using Join
Echo3 prints command-line arguments, using Join
echo_ex1_1 command
E xercis e 1.1 tha output all arguments amd also print os.Args[0], the name of t he command that invoked it.
E xercis e 1.1 tha output all arguments amd also print os.Args[0], the name of t he command that invoked it.
ex1.10 command
ex1.12 command
ex1.4 command
Dup2, version for ex.1.4 prints the count and text of lines that appear more than once in the input.
Dup2, version for ex.1.4 prints the count and text of lines that appear more than once in the input.
ex1.5 command
ex1.6 command
ex1.7 command
Fetch prints the content found at each specified URL.
Fetch prints the content found at each specified URL.
ex1.8 command
Fetch prints the content found at each specified URL.
Fetch prints the content found at each specified URL.
ex1.9 command
Fetch prints the content found at each specified URL.
Fetch prints the content found at each specified URL.
fetch command
Fetch prints the content found at each specified URL.
Fetch prints the content found at each specified URL.
fetchall command
helloworld command
lissajous command
server1 command
server2 command
server3 command
snippets command
ch2
cf command
Cf converts its numeric argument to Celsius and Fahrenheit.
Cf converts its numeric argument to Celsius and Fahrenheit.
echo4 command
ex2.1 command
ex2.2 command
popcount
(Package doc comment intentionally malformed to demonstrate golint.) !+
(Package doc comment intentionally malformed to demonstrate golint.) !+
tempconv
Package tempconv performs Celsius and Fahrenheit conversions.
Package tempconv performs Celsius and Fahrenheit conversions.
tempconv0
Package tempconv performs Celsius and Fahrenheit temperature computations.
Package tempconv performs Celsius and Fahrenheit temperature computations.
ch3
basename1 command
Basename1 reads file names from stdin and prints the base name of each one.
Basename1 reads file names from stdin and prints the base name of each one.
basename2 command
Basename2 reads file names from stdin and prints the base name of each one.
Basename2 reads file names from stdin and prints the base name of each one.
ex3.10 command
mandelbrot command
Mandelbrot emits a PNG image of the Mandelbrot fractal.
Mandelbrot emits a PNG image of the Mandelbrot fractal.
netflag command
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 illustrates the behavior of the built-in append function.
Append illustrates the behavior of the built-in append function.
charcount command
Charcount computes counts of Unicode characters.
Charcount computes counts of Unicode characters.
dedup command
Dedup prints only one instance of each line; duplicates are removed.
Dedup prints only one instance of each line; duplicates are removed.
ex4.1 command
Calculates nunmber of different bits in 2 Sha256 hashes
Calculates nunmber of different bits in 2 Sha256 hashes
ex4.10 command
ex4.2 command
Prints hash for standart input, defaul is 256 but you an specify two flags "sha384" and "sha512" to print extended hashes respectfully
Prints hash for standart input, defaul is 256 but you an specify two flags "sha384" and "sha512" to print extended hashes respectfully
ex4.3 command
ex4.5 command
Function that eliminates adjacent elements in-place from []string
Function that eliminates adjacent elements in-place from []string
ex4.9-wordfreq command
Prints frequncies of each word in an input text file
Prints frequncies of each word in an input text file
github
Package github provides a Go API for the GitHub issue tracker.
Package github provides a Go API for the GitHub issue tracker.
graph command
Graph shows how to use a map of maps to represent a directed graph.
Graph shows how to use a map of maps to represent a directed graph.
issues command
Issues prints a table of GitHub issues matching the search terms.
Issues prints a table of GitHub issues matching the search terms.
issueshtml command
Issueshtml prints an HTML table of issues matching the search terms.
Issueshtml prints an HTML table of issues matching the search terms.
nonempty command
Nonempty is an example of an in-place slice algorithm.
Nonempty is an example of an in-place slice algorithm.
rev command
sha256 command
treesort
Package treesort provides insertion sort using an unbalanced binary tree.
Package treesort provides insertion sort using an unbalanced binary tree.
treesort_visual command
xkcd command
Tool main allows to create offline index of XKCD comics strip and allow to query it and print URL by provided term from command-line
Tool main allows to create offline index of XKCD comics strip and allow to query it and print URL by provided term from command-line
ch5
findlinks1 command
Findlinks1 prints the links in an HTML document read from standard input.
Findlinks1 prints the links in an HTML document read from standard input.
findlinks2 command
Findlinks2 does an HTTP GET on each URL, parses the result as HTML, and prints the links within it.
Findlinks2 does an HTTP GET on each URL, parses the result as HTML, and prints the links within it.
findlinks3 command
Findlinks3 crawls the web, starting with the URLs on the command line.
Findlinks3 crawls the web, starting with the URLs on the command line.
links
Package links provides a link-extraction function.
Package links provides a link-extraction function.
minmax command
outline2 command
Outline prints the outline of an HTML document tree.
Outline prints the outline of an HTML document tree.
squares command
The squares program demonstrates a function value with state.
The squares program demonstrates a function value with state.
ch6
geometry
Package geometry defines simple types for plane geometry.
Package geometry defines simple types for plane geometry.
geomtest command
intset
Package intset provides a set of integers based on a bit vector.
Package intset provides a set of integers based on a bit vector.
intset_test command
ch7
bytecounter command
sleep command

Jump to

Keyboard shortcuts

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