GolangStudy

module
v0.0.0-...-908e3bf Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2022 License: MIT

README

GolangStudy

Studying golang .

Directories

Path Synopsis
build-web-applications-with-go
basic command
debug command
web command
web/Form command
web/Tests command
web/database command
web/rpc command
gopl
complexdatatype command
Charcount computes counts of Unicode characters.
Charcount computes counts of Unicode characters.
datatype command
Mandelbrot emits a PNG image of the Mandelbrot fractal.
Mandelbrot emits a PNG image of the Mandelbrot fractal.
start 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.
structure command
structure/tempconv
Package tempconv performs Celsius and Fahrenheit conversions.
Package tempconv performs Celsius and Fahrenheit conversions.
gopl.io
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.
ch1/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.
ch1/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.
ch1/echo1 command
Echo1 prints its command-line arguments.
Echo1 prints its command-line arguments.
ch1/echo2 command
Echo2 prints its command-line arguments.
Echo2 prints its command-line arguments.
ch1/echo3 command
Echo3 prints its command-line arguments.
Echo3 prints its command-line arguments.
ch1/fetch command
Fetch prints the content found at each specified URL.
Fetch prints the content found at each specified URL.
ch1/fetchall command
Fetchall fetches URLs in parallel and reports their times and sizes.
Fetchall fetches URLs in parallel and reports their times and sizes.
ch1/helloworld command
Helloworld is our first Go program.
Helloworld is our first Go program.
ch1/lissajous command
Lissajous generates GIF animations of random Lissajous figures.
Lissajous generates GIF animations of random Lissajous figures.
ch1/server1 command
Server1 is a minimal "echo" server.
Server1 is a minimal "echo" server.
ch1/server2 command
Server2 is a minimal "echo" and counter server.
Server2 is a minimal "echo" and counter server.
ch1/server3 command
Server3 is an "echo" server that displays request parameters.
Server3 is an "echo" server that displays request parameters.
ch10/cross command
The cross command prints the values of GOOS and GOARCH for this target.
The cross command prints the values of GOOS and GOARCH for this target.
ch10/jpeg command
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 command
Echo prints its command-line arguments.
Echo prints its command-line arguments.
ch11/storage1
Package storage is part of a hypothetical cloud storage server.
Package storage is part of a hypothetical cloud storage server.
ch11/storage2
Package storage is part of a hypothetical cloud storage server.
Package storage is part of a hypothetical cloud storage server.
ch11/word1
Package word provides utilities for word games.
Package word provides utilities for word games.
ch11/word2
Package word provides utilities for word games.
Package word provides utilities for word games.
ch12/display
Package display provides a means to display structured data.
Package display provides a means to display structured data.
ch12/format
Package format provides an Any function that can format any value.
Package format provides an Any function that can format any value.
ch12/methods
Package methods provides a function to print the methods of any value.
Package methods provides a function to print the methods of any value.
ch12/params
Package params provides a reflection-based parser for URL parameters.
Package params provides a reflection-based parser for URL parameters.
ch12/search command
Search is a demo of the params.Unpack function.
Search is a demo of the params.Unpack function.
ch12/sexpr
Package sexpr provides a means for converting Go objects to and from S-expressions.
Package sexpr provides a means for converting Go objects to and from S-expressions.
ch13/bzip
Package bzip provides a writer that uses bzip2 compression (bzip.org).
Package bzip provides a writer that uses bzip2 compression (bzip.org).
ch13/bzip-print
Package bzip provides a writer that uses bzip2 compression (bzip.org).
Package bzip provides a writer that uses bzip2 compression (bzip.org).
ch13/bzipper command
Bzipper reads input, bzip2-compresses it, and writes it out.
Bzipper reads input, bzip2-compresses it, and writes it out.
ch13/equal
Package equal provides a deep equivalence relation for arbitrary values.
Package equal provides a deep equivalence relation for arbitrary values.
ch13/unsafeptr command
Package unsafeptr demonstrates basic use of unsafe.Pointer.
Package unsafeptr demonstrates basic use of unsafe.Pointer.
ch2/boiling command
Boiling prints the boiling point of water.
Boiling prints the boiling point of water.
ch2/cf command
Cf converts its numeric argument to Celsius and Fahrenheit.
Cf converts its numeric argument to Celsius and Fahrenheit.
ch2/echo4 command
Echo4 prints its command-line arguments.
Echo4 prints its command-line arguments.
ch2/ftoc command
Ftoc prints two Fahrenheit-to-Celsius conversions.
Ftoc prints two Fahrenheit-to-Celsius conversions.
ch2/popcount
(Package doc comment intentionally malformed to demonstrate golint.) !+
(Package doc comment intentionally malformed to demonstrate golint.) !+
ch2/tempconv
Package tempconv performs Celsius and Fahrenheit conversions.
Package tempconv performs Celsius and Fahrenheit conversions.
ch2/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.
ch3/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.
ch3/comma command
Comma prints its argument numbers with a comma at each power of 1000.
Comma prints its argument numbers with a comma at each power of 1000.
ch3/mandelbrot command
Mandelbrot emits a PNG image of the Mandelbrot fractal.
Mandelbrot emits a PNG image of the Mandelbrot fractal.
ch3/netflag command
Netflag demonstrates an integer type used as a bit field.
Netflag demonstrates an integer type used as a bit field.
ch3/printints command
Printints demonstrates the use of bytes.Buffer to format a string.
Printints demonstrates the use of bytes.Buffer to format a string.
ch3/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.
ch4/autoescape command
Autoescape demonstrates automatic HTML escaping in html/template.
Autoescape demonstrates automatic HTML escaping in html/template.
ch4/charcount command
Charcount computes counts of Unicode characters.
Charcount computes counts of Unicode characters.
ch4/dedup command
Dedup prints only one instance of each line; duplicates are removed.
Dedup prints only one instance of each line; duplicates are removed.
ch4/embed command
Embed demonstrates basic struct embedding.
Embed demonstrates basic struct embedding.
ch4/github
Package github provides a Go API for the GitHub issue tracker.
Package github provides a Go API for the GitHub issue tracker.
ch4/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.
ch4/issues command
Issues prints a table of GitHub issues matching the search terms.
Issues prints a table of GitHub issues matching the search terms.
ch4/issueshtml command
Issueshtml prints an HTML table of issues matching the search terms.
Issueshtml prints an HTML table of issues matching the search terms.
ch4/issuesreport command
Issuesreport prints a report of issues matching the search terms.
Issuesreport prints a report of issues matching the search terms.
ch4/movie command
Movie prints Movies as JSON.
Movie prints Movies as JSON.
ch4/nonempty command
Nonempty is an example of an in-place slice algorithm.
Nonempty is an example of an in-place slice algorithm.
ch4/rev command
Rev reverses a slice.
Rev reverses a slice.
ch4/sha256 command
The sha256 command computes the SHA256 hash (an array) of a string.
The sha256 command computes the SHA256 hash (an array) of a string.
ch4/treesort
Package treesort provides insertion sort using an unbalanced binary tree.
Package treesort provides insertion sort using an unbalanced binary tree.
ch5/defer1 command
Defer1 demonstrates a deferred call being invoked during a panic.
Defer1 demonstrates a deferred call being invoked during a panic.
ch5/defer2 command
Defer2 demonstrates a deferred call to runtime.Stack during a panic.
Defer2 demonstrates a deferred call to runtime.Stack during a panic.
ch5/fetch command
Fetch saves the contents of a URL into a local file.
Fetch saves the contents of a URL into a local file.
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.
ch5/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.
ch5/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.
ch5/links
Package links provides a link-extraction function.
Package links provides a link-extraction function.
ch5/outline command
Outline prints the outline of an HTML document tree.
Outline prints the outline of an HTML document tree.
ch5/outline2 command
Outline prints the outline of an HTML document tree.
Outline prints the outline of an HTML document tree.
ch5/squares command
The squares program demonstrates a function value with state.
The squares program demonstrates a function value with state.
ch5/sum command
The sum program demonstrates a variadic function.
The sum program demonstrates a variadic function.
ch5/title1 command
Title1 prints the title of an HTML document specified by a URL.
Title1 prints the title of an HTML document specified by a URL.
ch5/title2 command
Title2 prints the title of an HTML document specified by a URL.
Title2 prints the title of an HTML document specified by a URL.
ch5/title3 command
Title3 prints the title of an HTML document specified by a URL.
Title3 prints the title of an HTML document specified by a URL.
ch5/toposort command
The toposort program prints the nodes of a DAG in topological order.
The toposort program prints the nodes of a DAG in topological order.
ch5/trace command
The trace program uses defer to add entry/exit diagnostics to a function.
The trace program uses defer to add entry/exit diagnostics to a function.
ch5/wait command
The wait program waits for an HTTP server to start responding.
The wait program waits for an HTTP server to start responding.
ch6/coloredpoint command
Coloredpoint demonstrates struct embedding.
Coloredpoint demonstrates struct embedding.
ch6/geometry
Package geometry defines simple types for plane geometry.
Package geometry defines simple types for plane geometry.
ch6/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.
ch6/urlvalues command
The urlvalues command demonstrates a map type with methods.
The urlvalues command demonstrates a map type with methods.
ch7/bytecounter command
Bytecounter demonstrates an implementation of io.Writer that counts bytes.
Bytecounter demonstrates an implementation of io.Writer that counts bytes.
ch7/eval
Package eval provides an expression evaluator.
Package eval provides an expression evaluator.
ch7/http1 command
Http1 is a rudimentary e-commerce server.
Http1 is a rudimentary e-commerce server.
ch7/http2 command
Http2 is an e-commerce server with /list and /price endpoints.
Http2 is an e-commerce server with /list and /price endpoints.
ch7/http3 command
Http3 is an e-commerce server that registers the /list and /price endpoints by calling (*http.ServeMux).Handle.
Http3 is an e-commerce server that registers the /list and /price endpoints by calling (*http.ServeMux).Handle.
ch7/http3a command
Http3a is an e-commerce server that registers the /list and /price endpoints by calling (*http.ServeMux).HandleFunc.
Http3a is an e-commerce server that registers the /list and /price endpoints by calling (*http.ServeMux).HandleFunc.
ch7/http4 command
Http4 is an e-commerce server that registers the /list and /price endpoint by calling http.HandleFunc.
Http4 is an e-commerce server that registers the /list and /price endpoint by calling http.HandleFunc.
ch7/sleep command
The sleep program sleeps for a specified period of time.
The sleep program sleeps for a specified period of time.
ch7/sorting command
Sorting sorts a music playlist into a variety of orders.
Sorting sorts a music playlist into a variety of orders.
ch7/surface command
The surface program plots the 3-D surface of a user-provided function.
The surface program plots the 3-D surface of a user-provided function.
ch7/tempconv
Package tempconv performs Celsius and Fahrenheit temperature computations.
Package tempconv performs Celsius and Fahrenheit temperature computations.
ch7/tempflag command
Tempflag prints the value of its -temp (temperature) flag.
Tempflag prints the value of its -temp (temperature) flag.
ch7/xmlselect command
Xmlselect prints the text of selected elements of an XML document.
Xmlselect prints the text of selected elements of an XML document.
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.
ch8/chat command
Chat is a server that lets clients chat with each other.
Chat is a server that lets clients chat with each other.
ch8/clock1 command
Clock1 is a TCP server that periodically writes the time.
Clock1 is a TCP server that periodically writes the time.
ch8/clock2 command
Clock is a TCP server that periodically writes the time.
Clock is a TCP server that periodically writes the time.
ch8/countdown1 command
Countdown implements the countdown for a rocket launch.
Countdown implements the countdown for a rocket launch.
ch8/countdown2 command
Countdown implements the countdown for a rocket launch.
Countdown implements the countdown for a rocket launch.
ch8/countdown3 command
Countdown implements the countdown for a rocket launch.
Countdown implements the countdown for a rocket launch.
ch8/crawl1 command
Crawl1 crawls web links starting with the command-line arguments.
Crawl1 crawls web links starting with the command-line arguments.
ch8/crawl2 command
Crawl2 crawls web links starting with the command-line arguments.
Crawl2 crawls web links starting with the command-line arguments.
ch8/crawl3 command
Crawl3 crawls web links starting with the command-line arguments.
Crawl3 crawls web links starting with the command-line arguments.
ch8/du1 command
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.
ch8/du2 command
The du2 command computes the disk usage of the files in a directory.
The du2 command computes the disk usage of the files in a directory.
ch8/du3 command
The du3 command computes the disk usage of the files in a directory.
The du3 command computes the disk usage of the files in a directory.
ch8/du4 command
The du4 command computes the disk usage of the files in a directory.
The du4 command computes the disk usage of the files in a directory.
ch8/netcat1 command
Netcat1 is a read-only TCP client.
Netcat1 is a read-only TCP client.
ch8/netcat2 command
Netcat is a simple read/write client for TCP servers.
Netcat is a simple read/write client for TCP servers.
ch8/netcat3 command
Netcat is a simple read/write client for TCP servers.
Netcat is a simple read/write client for TCP servers.
ch8/pipeline1 command
Pipeline1 demonstrates an infinite 3-stage pipeline.
Pipeline1 demonstrates an infinite 3-stage pipeline.
ch8/pipeline2 command
Pipeline2 demonstrates a finite 3-stage pipeline.
Pipeline2 demonstrates a finite 3-stage pipeline.
ch8/pipeline3 command
Pipeline3 demonstrates a finite 3-stage pipeline with range, close, and unidirectional channel types.
Pipeline3 demonstrates a finite 3-stage pipeline with range, close, and unidirectional channel types.
ch8/reverb1 command
Reverb1 is a TCP server that simulates an echo.
Reverb1 is a TCP server that simulates an echo.
ch8/reverb2 command
Reverb2 is a TCP server that simulates an echo.
Reverb2 is a TCP server that simulates an echo.
ch8/spinner command
Spinner displays an animation while computing the 45th Fibonacci number.
Spinner displays an animation while computing the 45th Fibonacci number.
ch8/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 provides a concurrency-safe bank with one account.
Package bank provides a concurrency-safe bank with one account.
ch9/bank2
Package bank provides a concurrency-safe bank with one account.
Package bank provides a concurrency-safe bank with one account.
ch9/bank3
Package bank provides a concurrency-safe single-account bank.
Package bank provides a concurrency-safe single-account bank.
ch9/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.
ch9/memo2
Package memo provides a concurrency-safe memoization a function of type Func.
Package memo provides a concurrency-safe memoization a function of type Func.
ch9/memo3
Package memo provides a concurrency-safe memoization a function of type Func.
Package memo provides a concurrency-safe memoization a function of type Func.
ch9/memo4
Package memo provides a concurrency-safe memoization a function of a function.
Package memo provides a concurrency-safe memoization a function of a function.
ch9/memo5
Package memo provides a concurrency-safe non-blocking memoization of a function.
Package memo provides a concurrency-safe non-blocking memoization of a function.
ch9/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.
gorm_study
create_table command
mysql command
quickstart command
grpc-client-server
server command
Slice command

Jump to

Keyboard shortcuts

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