GoExercices

module
v0.0.0-...-69de378 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2019 License: Apache-2.0

README

GoExercices

Exercices of the K&D book

Directories

Path Synopsis
Chapter-1
Exercice-1/src/echo
Displays each argument including the program name
Displays each argument including the program name
Exercice-10/src/fetchall
Fetchall fetches URLs in parallel and reports their times and sizes.
Fetchall fetches URLs in parallel and reports their times and sizes.
Exercice-11/src/fetchall
This program gets main page of the top million web sites
This program gets main page of the top million web sites
Exercice-12/src/server
Web server delivering Lissajous figures
Web server delivering Lissajous figures
Exercice-2/src/echo
Displays each argument of the command line with its index
Displays each argument of the command line with its index
Exercice-3/src/echo
Package echo contains several implementations of echo program
Package echo contains several implementations of echo program
Exercice-4/src/dup
Print the names of all files in which each duplicated line occurs.
Print the names of all files in which each duplicated line occurs.
Exercice-5/src/lissajous
Lissajous generates GIF animations of random Lissajous figures.
Lissajous generates GIF animations of random Lissajous figures.
Exercice-7/src/fetch
Fetch prints the content found at a URL.
Fetch prints the content found at a URL.
Exercice-8/src/fetch
Fetch prints the content found at a URL.
Fetch prints the content found at a URL.
Exercice-9/src/fetch
Fetch prints the content found at a URL.
Fetch prints the content found at a URL.
Chapter-2
Exercice-1/src/tempconv
Package tempconv performs Celsius, Fahrenheit and Kelvin conversions.
Package tempconv performs Celsius, Fahrenheit and Kelvin conversions.
Exercice-1/src/testconv
Test program for temperature conversions
Test program for temperature conversions
Exercice-2/src/lenconv
Package lenconv performs distance (meter and foot) conversions
Package lenconv performs distance (meter and foot) conversions
Exercice-2/src/tempconv
Package tempconv performs temperature (Celsius, Fahrenheit and Kelvin) conversions.
Package tempconv performs temperature (Celsius, Fahrenheit and Kelvin) conversions.
Exercice-2/src/weightconv
Package weightconv performs weight (kilo, pounds) conversions
Package weightconv performs weight (kilo, pounds) conversions
Exercice-3/src/popcount
Package popcount implements several methods to get the number of bits set in an integer
Package popcount implements several methods to get the number of bits set in an integer
Exercice-4/src/popcount
Package popcount implement several methods to get the number of bits set in an integer
Package popcount implement several methods to get the number of bits set in an integer
Exercice-5/src/popcount
Package popcount implements several versions of bits counting in an integer
Package popcount implements several versions of bits counting in an integer
Chapter-3
Exercice-1/src/surface
Surface computes an SVG rendering of a 3-D surface function.
Surface computes an SVG rendering of a 3-D surface function.
Exercice-12/src/anagram
Check if two strings are anagrams
Check if two strings are anagrams
Exercice-2/src/surface
Surface computes an SVG rendering of a 3-D surface function.
Surface computes an SVG rendering of a 3-D surface function.
Exercice-3/src/surface
Surface computes an SVG rendering of a 3-D surface function.
Surface computes an SVG rendering of a 3-D surface function.
Exercice-4/src/surface
Server2 is a minimal "echo" and counter server.
Server2 is a minimal "echo" and counter server.
Exercice-5/src/mandelbrot
Mandelbrot emits a PNG image of the Mandelbrot fractal.
Mandelbrot emits a PNG image of the Mandelbrot fractal.
Exercice-6/src/mandelbrot
Mandelbrot emits a PNG image of the Mandelbrot fractal.
Mandelbrot emits a PNG image of the Mandelbrot fractal.
Exercice-7/src/newton
Newton emits a PNG image of the Newton fractal.
Newton emits a PNG image of the Newton fractal.
Exercice-8/src/mandelbrot
Package mandelbrot emits a PNG image of the Mandelbrot fractal.
Package mandelbrot emits a PNG image of the Mandelbrot fractal.
Exercice-9/src/mandelbrot
Mandembrot server
Mandembrot server
Chapter-4
Exercice-1/src/sha256
The sha256 program computes the number of different bits in two SHA256 hashes (an array).
The sha256 program computes the number of different bits in two SHA256 hashes (an array).
Exercice-10/src/github
Package github provides a Go API for the GitHub issue tracker.
Package github provides a Go API for the GitHub issue tracker.
Exercice-10/src/issues
Issues prints a table of GitHub issues matching the search terms.
Issues prints a table of GitHub issues matching the search terms.
Exercice-11/src/github
Package github provides a Go API for the GitHub issue tracker.
Package github provides a Go API for the GitHub issue tracker.
Exercice-11/src/issues
Issues manages GitHub issues
Issues manages GitHub issues
Exercice-12/src/xkcd
xkcd is used to seach in xkcd comics
xkcd is used to seach in xkcd comics
Exercice-13/src/omdb
OMDb is used to provide movie data
OMDb is used to provide movie data
Exercice-14/src/github
Package github provides a Go API for the GitHub issue tracker.
Package github provides a Go API for the GitHub issue tracker.
Exercice-14/src/issueshtml
Package Issueshtml creates a HTML server for github issues
Package Issueshtml creates a HTML server for github issues
Exercice-2/src/digest
The digest program computes the hash (SHA256, SHA384 or SHA512) of stdin input
The digest program computes the hash (SHA256, SHA384 or SHA512) of stdin input
Exercice-3/src/reverse
Reverse an array of integer
Reverse an array of integer
Exercice-4/src/rotate
Rotate a slice of integers
Rotate a slice of integers
Exercice-5/src/unique
Remove dupplicate adjacent strings in a slice
Remove dupplicate adjacent strings in a slice
Exercice-6/src/unique
Remove duplicate adjacent spaces in a byte string (UTF-8 encoded)
Remove duplicate adjacent spaces in a byte string (UTF-8 encoded)
Exercice-7/src/reverse
Reverse an array of integer
Reverse an array of integer
Exercice-8/src/charcount
Charcount computes counts of Unicode characters.
Charcount computes counts of Unicode characters.
Exercice-9/src/wordfreq
Wordfreq computes counts of words.
Wordfreq computes counts of words.
Chapter-5
Exercice-1/src/findlinks
Findlinks prints the links in an HTML document read from standard input.
Findlinks prints the links in an HTML document read from standard input.
Exercice-10/src/toposort
The toposort program prints the nodes of a DAG in topological order.
The toposort program prints the nodes of a DAG in topological order.
Exercice-11/src/toposort
The toposort program prints the nodes of a DAG in topological order.
The toposort program prints the nodes of a DAG in topological order.
Exercice-12/src/outline
outline prints the outline of an HTML document tree.
outline prints the outline of an HTML document tree.
Exercice-13/src/findlinks
findlinks crawls the web, starting with the URLs on the command line.
findlinks crawls the web, starting with the URLs on the command line.
Exercice-2/src/countelementtype
CountElementType prints the number of each element type in a HTML document
CountElementType prints the number of each element type in a HTML document
Exercice-3/src/printtextnodes
PrintTextNodes prints the content of each text node in a HTML document
PrintTextNodes prints the content of each text node in a HTML document
Exercice-4/src/findlinks
Findlinks prints the links in an HTML document read from standard input.
Findlinks prints the links in an HTML document read from standard input.
Exercice-5/src/countwords
CountWords prints the numbers of words and images of an HTML document downloaded from the Internet.
CountWords prints the numbers of words and images of an HTML document downloaded from the Internet.
Exercice-6/src/surface
Surface computes an SVG rendering of a 3-D surface function.
Surface computes an SVG rendering of a 3-D surface function.
Exercice-7/src/prettyprint
PrettyPrint formats a HTML document
PrettyPrint formats a HTML document
Exercice-8/src/findattribute
findattribute looks for an element containing a specific attribute in a HTML document tree.
findattribute looks for an element containing a specific attribute in a HTML document tree.
Exercice-9/src/expand
expand is a package to replace variables in strings
expand is a package to replace variables in strings

Jump to

Keyboard shortcuts

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