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
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.
echo1_2
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
Echo2 prints its comand-line arguments
Echo2 prints its comand-line arguments
echo2
Echo2 prints its comand-line arguments
Echo2 prints its comand-line arguments
echo3
Echo3 prints command-line arguments, using Join
Echo3 prints command-line arguments, using Join
echo_ex1_1
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.4
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.7
Fetch prints the content found at each specified URL.
Fetch prints the content found at each specified URL.
ex1.8
Fetch prints the content found at each specified URL.
Fetch prints the content found at each specified URL.
ex1.9
Fetch prints the content found at each specified URL.
Fetch prints the content found at each specified URL.
fetch
Fetch prints the content found at each specified URL.
Fetch prints the content found at each specified URL.
ch2
cf
Cf converts its numeric argument to Celsius and Fahrenheit.
Cf converts its numeric argument to Celsius and Fahrenheit.
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
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
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.
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 illustrates the behavior of the built-in append function.
Append illustrates the behavior of the built-in append function.
charcount
Charcount computes counts of Unicode characters.
Charcount computes counts of Unicode characters.
dedup
Dedup prints only one instance of each line; duplicates are removed.
Dedup prints only one instance of each line; duplicates are removed.
ex4.1
Calculates nunmber of different bits in 2 Sha256 hashes
Calculates nunmber of different bits in 2 Sha256 hashes
ex4.2
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.5
Function that eliminates adjacent elements in-place from []string
Function that eliminates adjacent elements in-place from []string
ex4.9-wordfreq
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
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
Issues prints a table of GitHub issues matching the search terms.
Issues prints a table of GitHub issues matching the search terms.
issueshtml
Issueshtml prints an HTML table of issues matching the search terms.
Issueshtml prints an HTML table of issues matching the search terms.
nonempty
Nonempty is an example of an in-place slice algorithm.
Nonempty is an example of an in-place slice algorithm.
rev
treesort
Package treesort provides insertion sort using an unbalanced binary tree.
Package treesort provides insertion sort using an unbalanced binary tree.
xkcd
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
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
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
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.
outline2
Outline prints the outline of an HTML document tree.
Outline prints the outline of an HTML document tree.
squares
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.
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.
ch7

Jump to

Keyboard shortcuts

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