tgpl/

directory
v0.0.0-...-f598266 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: MIT

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 appears more than once in the input.
Dup2 prints the count and text of lines that appears more than once in the input.
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 its command-line arguments.
Echo3 prints its command-line arguments.
fetch
Fetch prints the content found at a URL.
Fetch prints the content found at a URL.
fetchall
Fetchall fetches URLs in parallel and reports their times and sizes.
Fetchall fetches URLs in parallel and reports their times and sizes.
helloworld
Helloworld prints hello 世界 text
Helloworld prints hello 世界 text
lissajous
Lissajous genarates GIF animation of random Lissajous figures.
Lissajous genarates GIF animation of random Lissajous figures.
server1
Serve1 is a minimal "echo" server.
Serve1 is a minimal "echo" server.
server2
Server2 is a minimal "echo" server and counter server.
Server2 is a minimal "echo" server and counter server.
server3
Server3 report on the headers and form fata that it recieves.
Server3 report on the headers and form fata that it recieves.
ch10
jpeg
The jpeg command reads a PNG image from the standard input and writes it as a JPEG image to the standard output.
The jpeg command reads a PNG image from the standard input and writes it as a JPEG image to the standard output.
ch11
echo
Echo prints its command-line arguments.
Echo prints its command-line arguments.
word1
Package word provides utilities for word games.
Package word provides utilities for word games.
word2
Package word provides utilities for word games.
Package word provides utilities for word games.
ch2
boiling
Boiling prints boiling point of water.
Boiling prints boiling point of water.
cf
Cf converts its numeric argument to Celsius and Farenheit.
Cf converts its numeric argument to Celsius and Farenheit.
echo4
Echo4 prints its command-line arguments.
Echo4 prints its command-line arguments.
ftoc
Ftoc prints two Fahrenheit-to-Celsius convensions.
Ftoc prints two Fahrenheit-to-Celsius convensions.
popcount
Popcount population count.
Popcount population count.
tempconv
Package tempconv performs Celsuis and Farenheit temperature computations.
Package tempconv performs Celsuis and Farenheit temperature computations.
tempconv0
Package tempconv performs Celsius and Farenheit temperature computations.
Package tempconv performs Celsius and Farenheit temperature computations.
ch3
Integer: some operations of integers.
Integer: some operations of integers.
basename1
Basename removes directory components and a .suffix.
Basename removes directory components and a .suffix.
basename2
Basename simpler version uses the strings.LastIndex library function.
Basename simpler version uses the strings.LastIndex library function.
comma
Comma inserts commas in a non-negative decimal integer string.
Comma inserts commas in a non-negative decimal integer string.
mandelbrot
Mandelbrot emits a PNG image of the Madelbrot fractal.
Mandelbrot emits a PNG image of the Madelbrot fractal.
netflag
Netflag
Netflag
printints
intsToString is like fmt.Sprintf(values) but adds commas.
intsToString is like fmt.Sprintf(values) but adds commas.
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
Append
charcount
Charcount computes counts of Unicode characters.
Charcount computes counts of Unicode characters.
github
Package github provides a Go API for the GitHub issue tracker.
Package github provides a Go API for the GitHub issue tracker.
nonempty
Nonempty is an example of an in-place slice algorithm.
Nonempty is an example of an in-place slice algorithm.
rev
sha256
Sha256
Sha256
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.
links
Package links provides a link-extraction function.
Package links provides a link-extraction function.
sum
ch6
ch7
ch8
cake
Package cake provides a simulation of a concurrent cake shop with numerous parameters.
Package cake provides a simulation of a concurrent cake shop with numerous parameters.
du1
The du1 command computes the disk usage of the files in a directory.
The du1 command computes the disk usage of the files in a directory.
du2
du3
The du1 command computes the disk usage of the files in a directory.
The du1 command computes the disk usage of the files in a directory.
du4
The du1 command computes the disk usage of the files in a directory.
The du1 command computes the disk usage of the files in a directory.
netcat1
Netcat1 is a read-only TCP client.
Netcat1 is a read-only TCP client.
thumbnail
The thumbnail package produces thumbnail-size images from larger images.
The thumbnail package produces thumbnail-size images from larger images.
ch9
bank1
Package bank provided a concurrency-safe bank with one account.
Package bank provided a concurrency-safe bank with one account.
bank2
Package bank provided a concurrency-safe bank with one account.
Package bank provided a concurrency-safe bank with one account.
bank3
Package bank provided a concurrency-safe bank with one account.
Package bank provided a concurrency-safe bank with one account.
memo1
Package memo provides a concurrency-unsafe memoization of a function of type Func.
Package memo provides a concurrency-unsafe memoization of a function of type Func.
memo2
Package memo provides a concurrency-unsafe memoization of a function of type Func.
Package memo provides a concurrency-unsafe memoization of a function of type Func.
memo3
Package memo provides a concurrency-unsafe memoization of a function of type Func.
Package memo provides a concurrency-unsafe memoization of a function of type Func.
memo4
Package memo provides a concurrency-unsafe memoization of a function of type Func.
Package memo provides a concurrency-unsafe memoization of a function of type Func.
memo5
Package memo provides a concurrency-unsafe memoization of a function of type Func.
Package memo provides a concurrency-unsafe memoization of a function of type Func.
memotest
Package memotest provides common functions for testing various designs of the memo package.
Package memotest provides common functions for testing various designs of the memo package.
psets1
pset1.1
Pset1.1 prints the name of the command invoked.
Pset1.1 prints the name of the command invoked.
pset1.10
Pset1.10 edit fetchall program, writes content to file.
Pset1.10 edit fetchall program, writes content to file.
pset1.12
Pset1.12 modify lissajous server by reading arguement from URL.
Pset1.12 modify lissajous server by reading arguement from URL.
pset1.2
Pset1.2 prints index and value of its command-line arguments.
Pset1.2 prints index and value of its command-line arguments.
pset1.3
Pset1.3 measure the time difference between low efficency program and using strings.Join program.
Pset1.3 measure the time difference between low efficency program and using strings.Join program.
pset1.4
Pset1.4 modify dup2 program, prints file name appears duplicate lines more than once.
Pset1.4 modify dup2 program, prints file name appears duplicate lines more than once.
pset1.5
Pset1.5 change lissajous program's palette to green on blank, for added authenticity.
Pset1.5 change lissajous program's palette to green on blank, for added authenticity.
pset1.6
Pset1.6 add more colors to lissajous program's palette and change the third argument of SetColorIndex to genarate colorful figures.
Pset1.6 add more colors to lissajous program's palette and change the third argument of SetColorIndex to genarate colorful figures.
pset1.7
Pset1.7 replace io.ReadAll with io.Copy(dst, src).
Pset1.7 replace io.ReadAll with io.Copy(dst, src).
pset1.8
Pset1.8 edit fetch program to add a http:// prefix if input URL not has prefix.
Pset1.8 edit fetch program to add a http:// prefix if input URL not has prefix.
pset1.9
Pset1.7 prints HTTP code in fetch.
Pset1.7 prints HTTP code in fetch.
psets2
pset2.1
Pset2.1 processing temperatures in the Kelvin scale.
Pset2.1 processing temperatures in the Kelvin scale.
pset2.2
Pset2.2 converts numeric command-line arguments in feet&meters and pounds&kilograms.
Pset2.2 converts numeric command-line arguments in feet&meters and pounds&kilograms.
pset2.3
Pset2.3 Rewirte PopCount to use a loop instead of a single expression.
Pset2.3 Rewirte PopCount to use a loop instead of a single expression.
pset2.4
Pset2.4 PopCount counts bits by shfiting its argument through 64 bit positions.
Pset2.4 PopCount counts bits by shfiting its argument through 64 bit positions.
pset2.5
Pset2.5 PopCount by useing x&(x-1).
Pset2.5 PopCount by useing x&(x-1).
psets3
pset3.1
Pset3.1 handle if f() returns infinite float.
Pset3.1 handle if f() returns infinite float.
pset3.10
Pset3.10 a iteration version.
Pset3.10 a iteration version.
pset3.11
Pset3.11 enhance comma to deals correctly with floating-point numbers and an optional sign.
Pset3.11 enhance comma to deals correctly with floating-point numbers and an optional sign.
pset3.12
Pset3.11 reports whether two strings are anagrams of each other.
Pset3.11 reports whether two strings are anagrams of each other.
pset3.13
Pset3.13 writes const declarations for KB, MB, up through YB as compactly as you can.
Pset3.13 writes const declarations for KB, MB, up through YB as compactly as you can.
pset3.2
Pset3.2 using other functions in math package.
Pset3.2 using other functions in math package.
pset3.3
Pset3.3 change top and bottom color of svg.
Pset3.3 change top and bottom color of svg.
pset3.4
Pset3.5 computes an SVG rendering of a 3-D surface function, and writes to client.
Pset3.5 computes an SVG rendering of a 3-D surface function, and writes to client.
pset3.5
Pset3.5 emits a corlorful PNG image of the Madelbrot fractal.
Pset3.5 emits a corlorful PNG image of the Madelbrot fractal.
pset3.6
Pset3.6 supersampling.
Pset3.6 supersampling.
psets4
pset4.1
Pset4.1 popCount of sum256.
Pset4.1 popCount of sum256.
pset4.2
Pset4.2 prints the SHA256/SHA384/SHA512 hash of stdin.
Pset4.2 prints the SHA256/SHA384/SHA512 hash of stdin.
pset4.3
Pset4.3 rewrite reverse to use an array pointer instead of a slice.
Pset4.3 rewrite reverse to use an array pointer instead of a slice.
pset4.4
Pset4.4 write a version of rotate that operates in a single pass.
Pset4.4 write a version of rotate that operates in a single pass.
pset4.5
Pset4.5 writes an in-place function to eliminate adjacent duplicates in a []string slice.
Pset4.5 writes an in-place function to eliminate adjacent duplicates in a []string slice.

Jump to

Keyboard shortcuts

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