corpus/

directory
v0.0.0-...-5500504 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2018 License: MIT

Directories

Path Synopsis
adonovan
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.
gopl.io/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.
gopl.io/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.
gopl.io/ch1/echo1 command
Echo1 prints its command-line arguments.
Echo1 prints its command-line arguments.
gopl.io/ch1/echo2 command
Echo2 prints its command-line arguments.
Echo2 prints its command-line arguments.
gopl.io/ch1/echo3 command
Echo3 prints its command-line arguments.
Echo3 prints its command-line arguments.
gopl.io/ch1/fetch command
Fetch prints the content found at each specified URL.
Fetch prints the content found at each specified URL.
gopl.io/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.
gopl.io/ch1/helloworld command
Helloworld is our first Go program.
Helloworld is our first Go program.
gopl.io/ch1/lissajous command
Lissajous generates GIF animations of random Lissajous figures.
Lissajous generates GIF animations of random Lissajous figures.
gopl.io/ch1/server1 command
Server1 is a minimal "echo" server.
Server1 is a minimal "echo" server.
gopl.io/ch1/server2 command
Server2 is a minimal "echo" and counter server.
Server2 is a minimal "echo" and counter server.
gopl.io/ch1/server3 command
Server3 is an "echo" server that displays request parameters.
Server3 is an "echo" server that displays request parameters.
gopl.io/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.
gopl.io/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.
gopl.io/ch11/echo command
Echo prints its command-line arguments.
Echo prints its command-line arguments.
gopl.io/ch11/storage1
Package storage is part of a hypothetical cloud storage server.
Package storage is part of a hypothetical cloud storage server.
gopl.io/ch11/storage2
Package storage is part of a hypothetical cloud storage server.
Package storage is part of a hypothetical cloud storage server.
gopl.io/ch11/word1
Package word provides utilities for word games.
Package word provides utilities for word games.
gopl.io/ch11/word2
Package word provides utilities for word games.
Package word provides utilities for word games.
gopl.io/ch12/display
Package display provides a means to display structured data.
Package display provides a means to display structured data.
gopl.io/ch12/format
Package format provides an Any function that can format any value.
Package format provides an Any function that can format any value.
gopl.io/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.
gopl.io/ch12/params
Package params provides a reflection-based parser for URL parameters.
Package params provides a reflection-based parser for URL parameters.
gopl.io/ch12/search command
Search is a demo of the params.Unpack function.
Search is a demo of the params.Unpack function.
gopl.io/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.
gopl.io/ch13/bzip
Package bzip provides a writer that uses bzip2 compression (bzip.org).
Package bzip provides a writer that uses bzip2 compression (bzip.org).
gopl.io/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).
gopl.io/ch13/bzipper command
Bzipper reads input, bzip2-compresses it, and writes it out.
Bzipper reads input, bzip2-compresses it, and writes it out.
gopl.io/ch13/equal
Package equal provides a deep equivalence relation for arbitrary values.
Package equal provides a deep equivalence relation for arbitrary values.
gopl.io/ch13/unsafeptr command
Package unsafeptr demonstrates basic use of unsafe.Pointer.
Package unsafeptr demonstrates basic use of unsafe.Pointer.
gopl.io/ch2/boiling command
Boiling prints the boiling point of water.
Boiling prints the boiling point of water.
gopl.io/ch2/cf command
Cf converts its numeric argument to Celsius and Fahrenheit.
Cf converts its numeric argument to Celsius and Fahrenheit.
gopl.io/ch2/echo4 command
Echo4 prints its command-line arguments.
Echo4 prints its command-line arguments.
gopl.io/ch2/ftoc command
Ftoc prints two Fahrenheit-to-Celsius conversions.
Ftoc prints two Fahrenheit-to-Celsius conversions.
gopl.io/ch2/popcount
(Package doc comment intentionally malformed to demonstrate golint.) !+
(Package doc comment intentionally malformed to demonstrate golint.) !+
gopl.io/ch2/tempconv
Package tempconv performs Celsius and Fahrenheit conversions.
Package tempconv performs Celsius and Fahrenheit conversions.
gopl.io/ch2/tempconv0
Package tempconv performs Celsius and Fahrenheit temperature computations.
Package tempconv performs Celsius and Fahrenheit temperature computations.
gopl.io/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.
gopl.io/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.
gopl.io/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.
gopl.io/ch3/mandelbrot command
Mandelbrot emits a PNG image of the Mandelbrot fractal.
Mandelbrot emits a PNG image of the Mandelbrot fractal.
gopl.io/ch3/netflag command
Netflag demonstrates an integer type used as a bit field.
Netflag demonstrates an integer type used as a bit field.
gopl.io/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.
gopl.io/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.
gopl.io/ch4/append command
Append illustrates the behavior of the built-in append function.
Append illustrates the behavior of the built-in append function.
gopl.io/ch4/autoescape command
Autoescape demonstrates automatic HTML escaping in html/template.
Autoescape demonstrates automatic HTML escaping in html/template.
gopl.io/ch4/charcount command
Charcount computes counts of Unicode characters.
Charcount computes counts of Unicode characters.
gopl.io/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.
gopl.io/ch4/embed command
Embed demonstrates basic struct embedding.
Embed demonstrates basic struct embedding.
gopl.io/ch4/github
Package github provides a Go API for the GitHub issue tracker.
Package github provides a Go API for the GitHub issue tracker.
gopl.io/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.
gopl.io/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.
gopl.io/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.
gopl.io/ch4/issuesreport command
Issuesreport prints a report of issues matching the search terms.
Issuesreport prints a report of issues matching the search terms.
gopl.io/ch4/movie command
Movie prints Movies as JSON.
Movie prints Movies as JSON.
gopl.io/ch4/nonempty command
Nonempty is an example of an in-place slice algorithm.
Nonempty is an example of an in-place slice algorithm.
gopl.io/ch4/rev command
Rev reverses a slice.
Rev reverses a slice.
gopl.io/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.
gopl.io/ch4/treesort
Package treesort provides insertion sort using an unbalanced binary tree.
Package treesort provides insertion sort using an unbalanced binary tree.
gopl.io/ch5/defer1 command
Defer1 demonstrates a deferred call being invoked during a panic.
Defer1 demonstrates a deferred call being invoked during a panic.
gopl.io/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.
gopl.io/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.
gopl.io/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.
gopl.io/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.
gopl.io/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.
gopl.io/ch5/links
Package links provides a link-extraction function.
Package links provides a link-extraction function.
gopl.io/ch5/outline command
Outline prints the outline of an HTML document tree.
Outline prints the outline of an HTML document tree.
gopl.io/ch5/outline2 command
Outline prints the outline of an HTML document tree.
Outline prints the outline of an HTML document tree.
gopl.io/ch5/squares command
The squares program demonstrates a function value with state.
The squares program demonstrates a function value with state.
gopl.io/ch5/sum command
The sum program demonstrates a variadic function.
The sum program demonstrates a variadic function.
gopl.io/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.
gopl.io/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.
gopl.io/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.
gopl.io/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.
gopl.io/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.
gopl.io/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.
gopl.io/ch6/coloredpoint command
Coloredpoint demonstrates struct embedding.
Coloredpoint demonstrates struct embedding.
gopl.io/ch6/geometry
Package geometry defines simple types for plane geometry.
Package geometry defines simple types for plane geometry.
gopl.io/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.
gopl.io/ch6/urlvalues command
The urlvalues command demonstrates a map type with methods.
The urlvalues command demonstrates a map type with methods.
gopl.io/ch7/bytecounter command
Bytecounter demonstrates an implementation of io.Writer that counts bytes.
Bytecounter demonstrates an implementation of io.Writer that counts bytes.
gopl.io/ch7/eval
Package eval provides an expression evaluator.
Package eval provides an expression evaluator.
gopl.io/ch7/http1 command
Http1 is a rudimentary e-commerce server.
Http1 is a rudimentary e-commerce server.
gopl.io/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.
gopl.io/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.
gopl.io/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.
gopl.io/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.
gopl.io/ch7/sleep command
The sleep program sleeps for a specified period of time.
The sleep program sleeps for a specified period of time.
gopl.io/ch7/sorting command
Sorting sorts a music playlist into a variety of orders.
Sorting sorts a music playlist into a variety of orders.
gopl.io/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.
gopl.io/ch7/tempconv
Package tempconv performs Celsius and Fahrenheit temperature computations.
Package tempconv performs Celsius and Fahrenheit temperature computations.
gopl.io/ch7/tempflag command
Tempflag prints the value of its -temp (temperature) flag.
Tempflag prints the value of its -temp (temperature) flag.
gopl.io/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.
gopl.io/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.
gopl.io/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.
gopl.io/ch8/clock1 command
Clock1 is a TCP server that periodically writes the time.
Clock1 is a TCP server that periodically writes the time.
gopl.io/ch8/clock2 command
Clock is a TCP server that periodically writes the time.
Clock is a TCP server that periodically writes the time.
gopl.io/ch8/countdown1 command
Countdown implements the countdown for a rocket launch.
Countdown implements the countdown for a rocket launch.
gopl.io/ch8/countdown2 command
Countdown implements the countdown for a rocket launch.
Countdown implements the countdown for a rocket launch.
gopl.io/ch8/countdown3 command
Countdown implements the countdown for a rocket launch.
Countdown implements the countdown for a rocket launch.
gopl.io/ch8/crawl1 command
Crawl1 crawls web links starting with the command-line arguments.
Crawl1 crawls web links starting with the command-line arguments.
gopl.io/ch8/crawl2 command
Crawl2 crawls web links starting with the command-line arguments.
Crawl2 crawls web links starting with the command-line arguments.
gopl.io/ch8/crawl3 command
Crawl3 crawls web links starting with the command-line arguments.
Crawl3 crawls web links starting with the command-line arguments.
gopl.io/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.
gopl.io/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.
gopl.io/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.
gopl.io/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.
gopl.io/ch8/netcat1 command
Netcat1 is a read-only TCP client.
Netcat1 is a read-only TCP client.
gopl.io/ch8/netcat2 command
Netcat is a simple read/write client for TCP servers.
Netcat is a simple read/write client for TCP servers.
gopl.io/ch8/netcat3 command
Netcat is a simple read/write client for TCP servers.
Netcat is a simple read/write client for TCP servers.
gopl.io/ch8/pipeline1 command
Pipeline1 demonstrates an infinite 3-stage pipeline.
Pipeline1 demonstrates an infinite 3-stage pipeline.
gopl.io/ch8/pipeline2 command
Pipeline2 demonstrates a finite 3-stage pipeline.
Pipeline2 demonstrates a finite 3-stage pipeline.
gopl.io/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.
gopl.io/ch8/reverb1 command
Reverb1 is a TCP server that simulates an echo.
Reverb1 is a TCP server that simulates an echo.
gopl.io/ch8/reverb2 command
Reverb2 is a TCP server that simulates an echo.
Reverb2 is a TCP server that simulates an echo.
gopl.io/ch8/spinner command
Spinner displays an animation while computing the 45th Fibonacci number.
Spinner displays an animation while computing the 45th Fibonacci number.
gopl.io/ch8/thumbnail
The thumbnail package produces thumbnail-size images from larger images.
The thumbnail package produces thumbnail-size images from larger images.
gopl.io/ch9/bank1
Package bank provides a concurrency-safe bank with one account.
Package bank provides a concurrency-safe bank with one account.
gopl.io/ch9/bank2
Package bank provides a concurrency-safe bank with one account.
Package bank provides a concurrency-safe bank with one account.
gopl.io/ch9/bank3
Package bank provides a concurrency-safe single-account bank.
Package bank provides a concurrency-safe single-account bank.
gopl.io/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.
gopl.io/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.
gopl.io/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.
gopl.io/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.
gopl.io/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.
gopl.io/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.
agtorre
go-cookbook/chapter6/grpc/greeter
Package greeter is a generated protocol buffer package.
Package greeter is a generated protocol buffer package.
go-cookbook/chapter7/grpcjson/keyvalue
Package keyvalue is a generated protocol buffer package.
Package keyvalue is a generated protocol buffer package.
apress
arschles
go-in-5-minutes/episode9/conf
Package conf is a configuration package.
Package conf is a configuration package.
astaxie
build-web-application-with-golang/de/code/src/apps/ch.1.2 command
Example code for Chapter 1.2 from "Build Web Application with Golang" Purpose: Run this file to check if your workspace is setup correctly.
Example code for Chapter 1.2 from "Build Web Application with Golang" Purpose: Run this file to check if your workspace is setup correctly.
build-web-application-with-golang/de/code/src/apps/ch.2.1 command
Example code for Chapter ? from "Build Web Application with Golang" Purpose: Hello world example demonstrating UTF-8 support.
Example code for Chapter ? from "Build Web Application with Golang" Purpose: Hello world example demonstrating UTF-8 support.
build-web-application-with-golang/de/code/src/apps/ch.2.2 command
Example code for Chapter 2.2 from "Build Web Application with Golang" Purpose: Goes over the assignment and manipulation of basic data types.
Example code for Chapter 2.2 from "Build Web Application with Golang" Purpose: Goes over the assignment and manipulation of basic data types.
build-web-application-with-golang/de/code/src/apps/ch.2.2/what_is_wrong_with_this command
Example code for Chapter 2.2 from "Build Web Application with Golang" Purpose: Try to fix this program.
Example code for Chapter 2.2 from "Build Web Application with Golang" Purpose: Try to fix this program.
build-web-application-with-golang/de/code/src/apps/ch.2.3 command
Example code for Chapter 2.3 from "Build Web Application with Golang" Purpose: Goes over if, else, switch conditions, loops and defer.
Example code for Chapter 2.3 from "Build Web Application with Golang" Purpose: Goes over if, else, switch conditions, loops and defer.
build-web-application-with-golang/de/code/src/apps/ch.2.3/basic_functions command
Example code for Chapter 2.3 from "Build Web Application with Golang" Purpose: Creating a basic function
Example code for Chapter 2.3 from "Build Web Application with Golang" Purpose: Creating a basic function
build-web-application-with-golang/de/code/src/apps/ch.2.3/hidden_print_methods command
As of Google go 1.1.2, `println()` and `print()` are hidden functions included from the runtime package.
As of Google go 1.1.2, `println()` and `print()` are hidden functions included from the runtime package.
build-web-application-with-golang/de/code/src/apps/ch.2.3/import_packages command
Example code for Chapter 2.3 from "Build Web Application with Golang" Purpose: Shows different ways of importing a package.
Example code for Chapter 2.3 from "Build Web Application with Golang" Purpose: Shows different ways of importing a package.
build-web-application-with-golang/de/code/src/apps/ch.2.3/panic_and_recover command
Example code for Chapter 2.3 from "Build Web Application with Golang" Purpose: Showing how to use `panic()` and `recover()`
Example code for Chapter 2.3 from "Build Web Application with Golang" Purpose: Showing how to use `panic()` and `recover()`
build-web-application-with-golang/de/code/src/apps/ch.2.3/pass_by_value_and_pointer command
Example code for Chapter 2.3 from "Build Web Application with Golang" Purpose: Shows passing a variable by value and reference
Example code for Chapter 2.3 from "Build Web Application with Golang" Purpose: Shows passing a variable by value and reference
build-web-application-with-golang/de/code/src/apps/ch.2.3/type_function command
Example code for Chapter 2.3 from "Build Web Application with Golang" Purpose: Shows how to define a function type
Example code for Chapter 2.3 from "Build Web Application with Golang" Purpose: Shows how to define a function type
build-web-application-with-golang/de/code/src/apps/ch.2.3/variadic_functions command
Example code for Chapter 2.3 from "Build Web Application with Golang" Purpose: Shows how to return multiple values from a function
Example code for Chapter 2.3 from "Build Web Application with Golang" Purpose: Shows how to return multiple values from a function
build-web-application-with-golang/de/code/src/apps/ch.2.4 command
Example code for Chapter 2.4 from "Build Web Application with Golang" Purpose: Shows different ways of creating a struct
Example code for Chapter 2.4 from "Build Web Application with Golang" Purpose: Shows different ways of creating a struct
build-web-application-with-golang/de/code/src/apps/ch.2.4/compare_age command
Example code for Chapter 2.4 from "Build Web Application with Golang" Purpose: Shows you how to pass and use structs.
Example code for Chapter 2.4 from "Build Web Application with Golang" Purpose: Shows you how to pass and use structs.
build-web-application-with-golang/de/code/src/apps/ch.2.4/embedded_structs command
Example code for Chapter 2.4 from "Build Web Application with Golang" Purpose: Example of embedded fields
Example code for Chapter 2.4 from "Build Web Application with Golang" Purpose: Example of embedded fields
build-web-application-with-golang/de/code/src/apps/ch.2.4/embedded_structs2 command
Example code for Chapter 2.4 from "Build Web Application with Golang" Purpose: Another example of embedded fields
Example code for Chapter 2.4 from "Build Web Application with Golang" Purpose: Another example of embedded fields
build-web-application-with-golang/de/code/src/apps/ch.2.4/embedded_structs_with_name_conflict command
Example code for Chapter 2.4 from "Build Web Application with Golang" Purpose: Shows a name conflict with a embedded field
Example code for Chapter 2.4 from "Build Web Application with Golang" Purpose: Shows a name conflict with a embedded field
build-web-application-with-golang/de/code/src/apps/ch.2.5/attach_methods_to_struct command
Example code from Chapter 2.5 Attach method to struct.
Example code from Chapter 2.5 Attach method to struct.
build-web-application-with-golang/de/code/src/apps/ch.2.7/buffered_channel command
Example code for Chapter 2.7 from "Build Web Application with Golang" Purpose: Shows how to use a buffered channel
Example code for Chapter 2.7 from "Build Web Application with Golang" Purpose: Shows how to use a buffered channel
build-web-application-with-golang/de/code/src/apps/ch.2.7/goroutine command
Example code for Chapter 2.7 from "Build Web Application with Golang" Purpose: Shows how to launch a simple gorountine
Example code for Chapter 2.7 from "Build Web Application with Golang" Purpose: Shows how to launch a simple gorountine
build-web-application-with-golang/de/code/src/apps/ch.2.7/range_and_close_channel command
Example code for Chapter 2.7 from "Build Web Application with Golang" Purpose: Shows how to close and interate through a channel
Example code for Chapter 2.7 from "Build Web Application with Golang" Purpose: Shows how to close and interate through a channel
build-web-application-with-golang/de/code/src/apps/ch.2.7/select_channel command
Example code for Chapter 2.7 from "Build Web Application with Golang" Purpose: Shows how to use `select`
Example code for Chapter 2.7 from "Build Web Application with Golang" Purpose: Shows how to use `select`
build-web-application-with-golang/de/code/src/apps/ch.2.7/timeout command
Example code for Chapter 2.7 from "Build Web Application with Golang" Purpose: Shows how to create and use a timeout
Example code for Chapter 2.7 from "Build Web Application with Golang" Purpose: Shows how to create and use a timeout
build-web-application-with-golang/de/code/src/apps/ch.2.7/unbuffered_channel command
Example code for Chapter 2.7 from "Build Web Application with Golang" Purpose: Shows how to create and use a unbuffered channel
Example code for Chapter 2.7 from "Build Web Application with Golang" Purpose: Shows how to create and use a unbuffered channel
build-web-application-with-golang/de/code/src/apps/ch.3.2 command
Example code for Chapter 3.2 from "Build Web Application with Golang" Purpose: Shows how to acces the form values from the request
Example code for Chapter 3.2 from "Build Web Application with Golang" Purpose: Shows how to acces the form values from the request
build-web-application-with-golang/de/code/src/apps/ch.3.4 command
Example code for Chapter 3.4 from "Build Web Application with Golang" Purpose: Shows how to create a handler for `http.ListenAndServe()` Run `go run main.go` then access `http://localhost:9090`
Example code for Chapter 3.4 from "Build Web Application with Golang" Purpose: Shows how to create a handler for `http.ListenAndServe()` Run `go run main.go` then access `http://localhost:9090`
build-web-application-with-golang/de/code/src/apps/ch.4.1 command
Example code for Chapter 4.1 from "Build Web Application with Golang" Purpose: Shows how to create a simple login using a template Run: `go run main.go`, then access `http://localhost:9090` and `http://localhost:9090/login`
Example code for Chapter 4.1 from "Build Web Application with Golang" Purpose: Shows how to create a simple login using a template Run: `go run main.go`, then access `http://localhost:9090` and `http://localhost:9090/login`
build-web-application-with-golang/de/code/src/apps/ch.4.2 command
Example code for Chapter 4.2 from "Build Web Application with Golang" Purpose: Shows how to perform server-side validation of user input from a form.
Example code for Chapter 4.2 from "Build Web Application with Golang" Purpose: Shows how to perform server-side validation of user input from a form.
build-web-application-with-golang/de/code/src/apps/ch.4.2/validator
This file contains all the validators to validate the profile page.
This file contains all the validators to validate the profile page.
build-web-application-with-golang/de/code/src/apps/ch.4.3 command
Example code for Chapter 4.3 from "Build Web Application with Golang" Purpose: Shows how to properly escape input
Example code for Chapter 4.3 from "Build Web Application with Golang" Purpose: Shows how to properly escape input
build-web-application-with-golang/de/code/src/apps/ch.4.4 command
Example code for Chapter 3.2 from "Build Web Application with Golang" Purpose: Shows how to prevent duplicate submissions by using tokens Example code for Chapter 4.4 based off the code from Chapter 4.2 Run `go run main.go` then access http://localhost:9090
Example code for Chapter 3.2 from "Build Web Application with Golang" Purpose: Shows how to prevent duplicate submissions by using tokens Example code for Chapter 4.4 based off the code from Chapter 4.2 Run `go run main.go` then access http://localhost:9090
build-web-application-with-golang/de/code/src/apps/ch.4.4/nonce
A nonce is a number or string used only once.
A nonce is a number or string used only once.
build-web-application-with-golang/de/code/src/apps/ch.4.4/validator
This file contains all the validators to validate the profile page.
This file contains all the validators to validate the profile page.
build-web-application-with-golang/de/code/src/apps/ch.4.5 command
Example code for Chapter 4.5 Purpose is to create a server to handle uploading files.
Example code for Chapter 4.5 Purpose is to create a server to handle uploading files.
build-web-application-with-golang/de/code/src/apps/ch.4.5/nonce
A nonce is a number or string used only once.
A nonce is a number or string used only once.
build-web-application-with-golang/de/code/src/apps/ch.4.5/validator
This file contains all the validators to validate the profile page.
This file contains all the validators to validate the profile page.
build-web-application-with-golang/de/code/src/apps/ch.5.2 command
Example code for Chapter 5.2 from "Build Web Application with Golang" Purpose: Use SQL driver to perform simple CRUD operations.
Example code for Chapter 5.2 from "Build Web Application with Golang" Purpose: Use SQL driver to perform simple CRUD operations.
build-web-application-with-golang/de/code/src/apps/ch.5.3 command
Example code for Chapter 5.3 from "Build Web Application with Golang" Purpose: Shows how to run simple CRUD operations using a sqlite driver
Example code for Chapter 5.3 from "Build Web Application with Golang" Purpose: Shows how to run simple CRUD operations using a sqlite driver
build-web-application-with-golang/de/code/src/apps/ch.5.4 command
Example code for Chapter 5.4 from "Build Web Application with Golang" Purpose: Show how to perform CRUD operations using a postgres driver
Example code for Chapter 5.4 from "Build Web Application with Golang" Purpose: Show how to perform CRUD operations using a postgres driver
build-web-application-with-golang/de/code/src/apps/ch.5.5 command
Example code for Chapter 5.5 Purpose is to show to use BeeDB ORM for basic CRUD operations for sqlite3
Example code for Chapter 5.5 Purpose is to show to use BeeDB ORM for basic CRUD operations for sqlite3
build-web-application-with-golang/de/code/src/apps/ch.5.6/mongodb command
Example code for Chapter 5.6 from "Build Web Application with Golang" Purpose: Shows you have to perform basic CRUD operations for a mongodb driver.
Example code for Chapter 5.6 from "Build Web Application with Golang" Purpose: Shows you have to perform basic CRUD operations for a mongodb driver.
build-web-application-with-golang/de/code/src/apps/ch.5.6/redis command
Example code for Chapter 5.6 from "Build Web Application with Golang" Purpose: Shows you have to perform basic CRUD operations for a redis driver.
Example code for Chapter 5.6 from "Build Web Application with Golang" Purpose: Shows you have to perform basic CRUD operations for a redis driver.
build-web-application-with-golang/de/code/src/mymath
Example code for Chapter 1.2 from "Build Web Application with Golang" Purpose: Shows how to create a simple package called `mymath` This package must be imported from another go file to run.
Example code for Chapter 1.2 from "Build Web Application with Golang" Purpose: Shows how to create a simple package called `mymath` This package must be imported from another go file to run.
build-web-application-with-golang/en/code/src/apps/ch.1.2 command
Example code for Chapter 1.2 from "Build Web Application with Golang" Purpose: Run this file to check if your workspace is setup correctly.
Example code for Chapter 1.2 from "Build Web Application with Golang" Purpose: Run this file to check if your workspace is setup correctly.
build-web-application-with-golang/en/code/src/apps/ch.2.1 command
Example code for Chapter ? from "Build Web Application with Golang" Purpose: Hello world example demonstrating UTF-8 support.
Example code for Chapter ? from "Build Web Application with Golang" Purpose: Hello world example demonstrating UTF-8 support.
build-web-application-with-golang/en/code/src/apps/ch.2.2 command
Example code for Chapter 2.2 from "Build Web Application with Golang" Purpose: Goes over the assignment and manipulation of basic data types.
Example code for Chapter 2.2 from "Build Web Application with Golang" Purpose: Goes over the assignment and manipulation of basic data types.
build-web-application-with-golang/en/code/src/apps/ch.2.2/what_is_wrong_with_this command
Example code for Chapter 2.2 from "Build Web Application with Golang" Purpose: Try to fix this program.
Example code for Chapter 2.2 from "Build Web Application with Golang" Purpose: Try to fix this program.
build-web-application-with-golang/en/code/src/apps/ch.2.3 command
Example code for Chapter 2.3 from "Build Web Application with Golang" Purpose: Goes over if, else, switch conditions, loops and defer.
Example code for Chapter 2.3 from "Build Web Application with Golang" Purpose: Goes over if, else, switch conditions, loops and defer.
build-web-application-with-golang/en/code/src/apps/ch.2.3/basic_functions command
Example code for Chapter 2.3 from "Build Web Application with Golang" Purpose: Creating a basic function
Example code for Chapter 2.3 from "Build Web Application with Golang" Purpose: Creating a basic function
build-web-application-with-golang/en/code/src/apps/ch.2.3/hidden_print_methods command
As of Google go 1.1.2, `println()` and `print()` are hidden functions included from the runtime package.
As of Google go 1.1.2, `println()` and `print()` are hidden functions included from the runtime package.
build-web-application-with-golang/en/code/src/apps/ch.2.3/import_packages command
Example code for Chapter 2.3 from "Build Web Application with Golang" Purpose: Shows different ways of importing a package.
Example code for Chapter 2.3 from "Build Web Application with Golang" Purpose: Shows different ways of importing a package.
build-web-application-with-golang/en/code/src/apps/ch.2.3/panic_and_recover command
Example code for Chapter 2.3 from "Build Web Application with Golang" Purpose: Showing how to use `panic()` and `recover()`
Example code for Chapter 2.3 from "Build Web Application with Golang" Purpose: Showing how to use `panic()` and `recover()`
build-web-application-with-golang/en/code/src/apps/ch.2.3/pass_by_value_and_pointer command
Example code for Chapter 2.3 from "Build Web Application with Golang" Purpose: Shows passing a variable by value and reference
Example code for Chapter 2.3 from "Build Web Application with Golang" Purpose: Shows passing a variable by value and reference
build-web-application-with-golang/en/code/src/apps/ch.2.3/type_function command
Example code for Chapter 2.3 from "Build Web Application with Golang" Purpose: Shows how to define a function type
Example code for Chapter 2.3 from "Build Web Application with Golang" Purpose: Shows how to define a function type
build-web-application-with-golang/en/code/src/apps/ch.2.3/variadic_functions command
Example code for Chapter 2.3 from "Build Web Application with Golang" Purpose: Shows how to return multiple values from a function
Example code for Chapter 2.3 from "Build Web Application with Golang" Purpose: Shows how to return multiple values from a function
build-web-application-with-golang/en/code/src/apps/ch.2.4 command
Example code for Chapter 2.4 from "Build Web Application with Golang" Purpose: Shows different ways of creating a struct
Example code for Chapter 2.4 from "Build Web Application with Golang" Purpose: Shows different ways of creating a struct
build-web-application-with-golang/en/code/src/apps/ch.2.4/compare_age command
Example code for Chapter 2.4 from "Build Web Application with Golang" Purpose: Shows you how to pass and use structs.
Example code for Chapter 2.4 from "Build Web Application with Golang" Purpose: Shows you how to pass and use structs.
build-web-application-with-golang/en/code/src/apps/ch.2.4/embedded_structs command
Example code for Chapter 2.4 from "Build Web Application with Golang" Purpose: Example of embedded fields
Example code for Chapter 2.4 from "Build Web Application with Golang" Purpose: Example of embedded fields
build-web-application-with-golang/en/code/src/apps/ch.2.4/embedded_structs2 command
Example code for Chapter 2.4 from "Build Web Application with Golang" Purpose: Another example of embedded fields
Example code for Chapter 2.4 from "Build Web Application with Golang" Purpose: Another example of embedded fields
build-web-application-with-golang/en/code/src/apps/ch.2.4/embedded_structs_with_name_conflict command
Example code for Chapter 2.4 from "Build Web Application with Golang" Purpose: Shows a name conflict with a embedded field
Example code for Chapter 2.4 from "Build Web Application with Golang" Purpose: Shows a name conflict with a embedded field
build-web-application-with-golang/en/code/src/apps/ch.2.5/attach_methods_to_struct command
Example code from Chapter 2.5 Attach method to struct.
Example code from Chapter 2.5 Attach method to struct.
build-web-application-with-golang/en/code/src/apps/ch.2.7/buffered_channel command
Example code for Chapter 2.7 from "Build Web Application with Golang" Purpose: Shows how to use a buffered channel
Example code for Chapter 2.7 from "Build Web Application with Golang" Purpose: Shows how to use a buffered channel
build-web-application-with-golang/en/code/src/apps/ch.2.7/goroutine command
Example code for Chapter 2.7 from "Build Web Application with Golang" Purpose: Shows how to launch a simple gorountine
Example code for Chapter 2.7 from "Build Web Application with Golang" Purpose: Shows how to launch a simple gorountine
build-web-application-with-golang/en/code/src/apps/ch.2.7/range_and_close_channel command
Example code for Chapter 2.7 from "Build Web Application with Golang" Purpose: Shows how to close and interate through a channel
Example code for Chapter 2.7 from "Build Web Application with Golang" Purpose: Shows how to close and interate through a channel
build-web-application-with-golang/en/code/src/apps/ch.2.7/select_channel command
Example code for Chapter 2.7 from "Build Web Application with Golang" Purpose: Shows how to use `select`
Example code for Chapter 2.7 from "Build Web Application with Golang" Purpose: Shows how to use `select`
build-web-application-with-golang/en/code/src/apps/ch.2.7/timeout command
Example code for Chapter 2.7 from "Build Web Application with Golang" Purpose: Shows how to create and use a timeout
Example code for Chapter 2.7 from "Build Web Application with Golang" Purpose: Shows how to create and use a timeout
build-web-application-with-golang/en/code/src/apps/ch.2.7/unbuffered_channel command
Example code for Chapter 2.7 from "Build Web Application with Golang" Purpose: Shows how to create and use a unbuffered channel
Example code for Chapter 2.7 from "Build Web Application with Golang" Purpose: Shows how to create and use a unbuffered channel
build-web-application-with-golang/en/code/src/apps/ch.3.2 command
Example code for Chapter 3.2 from "Build Web Application with Golang" Purpose: Shows how to acces the form values from the request
Example code for Chapter 3.2 from "Build Web Application with Golang" Purpose: Shows how to acces the form values from the request
build-web-application-with-golang/en/code/src/apps/ch.3.4 command
Example code for Chapter 3.4 from "Build Web Application with Golang" Purpose: Shows how to create a handler for `http.ListenAndServe()` Run `go run main.go` then access `http://localhost:9090`
Example code for Chapter 3.4 from "Build Web Application with Golang" Purpose: Shows how to create a handler for `http.ListenAndServe()` Run `go run main.go` then access `http://localhost:9090`
build-web-application-with-golang/en/code/src/apps/ch.4.1 command
Example code for Chapter 4.1 from "Build Web Application with Golang" Purpose: Shows how to create a simple login using a template Run: `go run main.go`, then access `http://localhost:9090` and `http://localhost:9090/login`
Example code for Chapter 4.1 from "Build Web Application with Golang" Purpose: Shows how to create a simple login using a template Run: `go run main.go`, then access `http://localhost:9090` and `http://localhost:9090/login`
build-web-application-with-golang/en/code/src/apps/ch.4.2 command
Example code for Chapter 4.2 from "Build Web Application with Golang" Purpose: Shows how to perform server-side validation of user input from a form.
Example code for Chapter 4.2 from "Build Web Application with Golang" Purpose: Shows how to perform server-side validation of user input from a form.
build-web-application-with-golang/en/code/src/apps/ch.4.2/validator
This file contains all the validators to validate the profile page.
This file contains all the validators to validate the profile page.
build-web-application-with-golang/en/code/src/apps/ch.4.3 command
Example code for Chapter 4.3 from "Build Web Application with Golang" Purpose: Shows how to properly escape input
Example code for Chapter 4.3 from "Build Web Application with Golang" Purpose: Shows how to properly escape input
build-web-application-with-golang/en/code/src/apps/ch.4.4 command
Example code for Chapter 3.2 from "Build Web Application with Golang" Purpose: Shows how to prevent duplicate submissions by using tokens Example code for Chapter 4.4 based off the code from Chapter 4.2 Run `go run main.go` then access http://localhost:9090
Example code for Chapter 3.2 from "Build Web Application with Golang" Purpose: Shows how to prevent duplicate submissions by using tokens Example code for Chapter 4.4 based off the code from Chapter 4.2 Run `go run main.go` then access http://localhost:9090
build-web-application-with-golang/en/code/src/apps/ch.4.4/nonce
A nonce is a number or string used only once.
A nonce is a number or string used only once.
build-web-application-with-golang/en/code/src/apps/ch.4.4/validator
This file contains all the validators to validate the profile page.
This file contains all the validators to validate the profile page.
build-web-application-with-golang/en/code/src/apps/ch.4.5 command
Example code for Chapter 4.5 Purpose is to create a server to handle uploading files.
Example code for Chapter 4.5 Purpose is to create a server to handle uploading files.
build-web-application-with-golang/en/code/src/apps/ch.4.5/nonce
A nonce is a number or string used only once.
A nonce is a number or string used only once.
build-web-application-with-golang/en/code/src/apps/ch.4.5/validator
This file contains all the validators to validate the profile page.
This file contains all the validators to validate the profile page.
build-web-application-with-golang/en/code/src/apps/ch.5.2 command
Example code for Chapter 5.2 from "Build Web Application with Golang" Purpose: Use SQL driver to perform simple CRUD operations.
Example code for Chapter 5.2 from "Build Web Application with Golang" Purpose: Use SQL driver to perform simple CRUD operations.
build-web-application-with-golang/en/code/src/apps/ch.5.3 command
Example code for Chapter 5.3 from "Build Web Application with Golang" Purpose: Shows how to run simple CRUD operations using a sqlite driver
Example code for Chapter 5.3 from "Build Web Application with Golang" Purpose: Shows how to run simple CRUD operations using a sqlite driver
build-web-application-with-golang/en/code/src/apps/ch.5.4 command
Example code for Chapter 5.4 from "Build Web Application with Golang" Purpose: Show how to perform CRUD operations using a postgres driver
Example code for Chapter 5.4 from "Build Web Application with Golang" Purpose: Show how to perform CRUD operations using a postgres driver
build-web-application-with-golang/en/code/src/apps/ch.5.5 command
Example code for Chapter 5.5 Purpose is to show to use BeeDB ORM for basic CRUD operations for sqlite3
Example code for Chapter 5.5 Purpose is to show to use BeeDB ORM for basic CRUD operations for sqlite3
build-web-application-with-golang/en/code/src/apps/ch.5.6/mongodb command
Example code for Chapter 5.6 from "Build Web Application with Golang" Purpose: Shows you have to perform basic CRUD operations for a mongodb driver.
Example code for Chapter 5.6 from "Build Web Application with Golang" Purpose: Shows you have to perform basic CRUD operations for a mongodb driver.
build-web-application-with-golang/en/code/src/apps/ch.5.6/redis command
Example code for Chapter 5.6 from "Build Web Application with Golang" Purpose: Shows you have to perform basic CRUD operations for a redis driver.
Example code for Chapter 5.6 from "Build Web Application with Golang" Purpose: Shows you have to perform basic CRUD operations for a redis driver.
build-web-application-with-golang/en/code/src/mymath
Example code for Chapter 1.2 from "Build Web Application with Golang" Purpose: Shows how to create a simple package called `mymath` This package must be imported from another go file to run.
Example code for Chapter 1.2 from "Build Web Application with Golang" Purpose: Shows how to create a simple package called `mymath` This package must be imported from another go file to run.
build-web-application-with-golang/es/code/src/apps/ch.1.2 command
Código de ejemplo para el capítulo 1.2 del libro "Construye Aplicaciones Web con Golang" Propósito: Ejecuta este archivo para verificar que tu espacio de trabajo está configurado correctamente.
Código de ejemplo para el capítulo 1.2 del libro "Construye Aplicaciones Web con Golang" Propósito: Ejecuta este archivo para verificar que tu espacio de trabajo está configurado correctamente.
build-web-application-with-golang/es/code/src/mymath
Código de ejmplo para el capítulo 1.2 de "Construye Aplicaciones Web con Golang" Propósito: Muestra como crear un paquete simple llamado `mymath` Este paquete debe ser importado desde otro archivo Go para poder ejecutarse.
Código de ejmplo para el capítulo 1.2 de "Construye Aplicaciones Web con Golang" Propósito: Muestra como crear un paquete simple llamado `mymath` Este paquete debe ser importado desde otro archivo Go para poder ejecutarse.
build-web-application-with-golang/pt-br/code/src/apps/ch.1.2 command
Código de exemplo para o Capítulo 1.2 do "Build Web Application with Golang" Propósito: Execute este arquivo para verificar se o seu workspace está corretamente configurado.
Código de exemplo para o Capítulo 1.2 do "Build Web Application with Golang" Propósito: Execute este arquivo para verificar se o seu workspace está corretamente configurado.
build-web-application-with-golang/pt-br/code/src/apps/ch.2.1 command
Código de exemplo para o Capítulo 2.1 do "Build Web Application with Golang" Propósito: Exemplo de Hello world demonstrando suporte para UTF-8.
Código de exemplo para o Capítulo 2.1 do "Build Web Application with Golang" Propósito: Exemplo de Hello world demonstrando suporte para UTF-8.
build-web-application-with-golang/pt-br/code/src/apps/ch.2.2 command
Código de exemplo para o Capítulo 2.2 do "Build Web Application with Golang" Propósito: Revisar os conceitos de atribuição e manipulação de tipos de dados básicos.
Código de exemplo para o Capítulo 2.2 do "Build Web Application with Golang" Propósito: Revisar os conceitos de atribuição e manipulação de tipos de dados básicos.
build-web-application-with-golang/pt-br/code/src/apps/ch.2.2/what_is_wrong_with_this command
Código de exemplo para o Capítulo 2.2 do "Build Web Application with Golang" Propósito: Tente corrigir este programa.
Código de exemplo para o Capítulo 2.2 do "Build Web Application with Golang" Propósito: Tente corrigir este programa.
build-web-application-with-golang/pt-br/code/src/apps/ch.2.3 command
Código de exemplo do capítulo 2.3 de "Build Web Application with Golang" Propósito: mostra alguns exemplos de if, else, switch, loops e defer.
Código de exemplo do capítulo 2.3 de "Build Web Application with Golang" Propósito: mostra alguns exemplos de if, else, switch, loops e defer.
build-web-application-with-golang/pt-br/code/src/apps/ch.2.3/basic_functions command
Código de exemplo do capítulo 2.3 de "Build Web Application with Golang" Propósito: Criando uma função básica
Código de exemplo do capítulo 2.3 de "Build Web Application with Golang" Propósito: Criando uma função básica
build-web-application-with-golang/pt-br/code/src/apps/ch.2.3/hidden_print_methods command
A partir do Google go 1.1.2, `println()` e `print()` são funções ocultas incluídas no pacote de tempo de execução.
A partir do Google go 1.1.2, `println()` e `print()` são funções ocultas incluídas no pacote de tempo de execução.
build-web-application-with-golang/pt-br/code/src/apps/ch.2.3/import_packages command
Código de exemplo do capítulo 2.3 de "Build Web Application with Golang" Propósito: mostra diferentes formas de importar um pacote.
Código de exemplo do capítulo 2.3 de "Build Web Application with Golang" Propósito: mostra diferentes formas de importar um pacote.
build-web-application-with-golang/pt-br/code/src/apps/ch.2.3/panic_and_recover command
Código de exemplo do capítulo 2.3 de "Build Web Application with Golang" Propósito: mostrar como usar `panic()` e `recover()`
Código de exemplo do capítulo 2.3 de "Build Web Application with Golang" Propósito: mostrar como usar `panic()` e `recover()`
build-web-application-with-golang/pt-br/code/src/apps/ch.2.3/pass_by_value_and_pointer command
Código de exemplo do capítulo 2.3 de "Build Web Application with Golang" Propósito: mostra como passar uma variável por valor e por referência
Código de exemplo do capítulo 2.3 de "Build Web Application with Golang" Propósito: mostra como passar uma variável por valor e por referência
build-web-application-with-golang/pt-br/code/src/apps/ch.2.3/type_function command
Código de exemplo do capítulo 2.3 de "Build Web Application with Golang" Propósito: mostra como definir um tipo de função
Código de exemplo do capítulo 2.3 de "Build Web Application with Golang" Propósito: mostra como definir um tipo de função
build-web-application-with-golang/pt-br/code/src/apps/ch.2.3/variadic_functions command
Código de exemplo do capítulo 2.3 de "Build Web Application with Golang" Propósito: mostra como retornar múltiplos valores de uma função
Código de exemplo do capítulo 2.3 de "Build Web Application with Golang" Propósito: mostra como retornar múltiplos valores de uma função
build-web-application-with-golang/pt-br/code/src/apps/ch.2.4 command
Código de exemplo da seção 2.4 de "Build Web Application with Golang" Propósito: Mostrar formas diferentes de criar uma estrutura
Código de exemplo da seção 2.4 de "Build Web Application with Golang" Propósito: Mostrar formas diferentes de criar uma estrutura
build-web-application-with-golang/pt-br/code/src/apps/ch.2.4/compare_age command
Código de exemplo da seção 2.4 de "Build Web Application with Golang" Propósito: Mostrar como utilizar estruturas em Go.
Código de exemplo da seção 2.4 de "Build Web Application with Golang" Propósito: Mostrar como utilizar estruturas em Go.
build-web-application-with-golang/pt-br/code/src/apps/ch.2.4/embedded_structs command
Código de exemplo da seção 2.4 de "Build Web Application with Golang" Propósito: Exemplo de campos incorporados
Código de exemplo da seção 2.4 de "Build Web Application with Golang" Propósito: Exemplo de campos incorporados
build-web-application-with-golang/pt-br/code/src/apps/ch.2.4/embedded_structs2 command
Código de exemplo da seção 2.4 de "Build Web Application with Golang" Propósito: Outro exemplo de campos incorporados
Código de exemplo da seção 2.4 de "Build Web Application with Golang" Propósito: Outro exemplo de campos incorporados
build-web-application-with-golang/pt-br/code/src/apps/ch.2.4/embedded_structs_with_name_conflict command
Código de exemplo da seção 2.4 de "Build Web Application with Golang" Propósito: Mostra um conflito de nomes com um campo incorporado
Código de exemplo da seção 2.4 de "Build Web Application with Golang" Propósito: Mostra um conflito de nomes com um campo incorporado
build-web-application-with-golang/pt-br/code/src/apps/ch.2.5/attach_methods_to_struct command
Example code from Chapter 2.5 Attach method to struct.
Example code from Chapter 2.5 Attach method to struct.
build-web-application-with-golang/pt-br/code/src/apps/ch.2.7/buffered_channel command
Example code for Chapter 2.7 from "Build Web Application with Golang" Purpose: Shows how to use a buffered channel
Example code for Chapter 2.7 from "Build Web Application with Golang" Purpose: Shows how to use a buffered channel
build-web-application-with-golang/pt-br/code/src/apps/ch.2.7/goroutine command
Example code for Chapter 2.7 from "Build Web Application with Golang" Purpose: Shows how to launch a simple gorountine
Example code for Chapter 2.7 from "Build Web Application with Golang" Purpose: Shows how to launch a simple gorountine
build-web-application-with-golang/pt-br/code/src/apps/ch.2.7/range_and_close_channel command
Example code for Chapter 2.7 from "Build Web Application with Golang" Purpose: Shows how to close and interate through a channel
Example code for Chapter 2.7 from "Build Web Application with Golang" Purpose: Shows how to close and interate through a channel
build-web-application-with-golang/pt-br/code/src/apps/ch.2.7/select_channel command
Example code for Chapter 2.7 from "Build Web Application with Golang" Purpose: Shows how to use `select`
Example code for Chapter 2.7 from "Build Web Application with Golang" Purpose: Shows how to use `select`
build-web-application-with-golang/pt-br/code/src/apps/ch.2.7/timeout command
Example code for Chapter 2.7 from "Build Web Application with Golang" Purpose: Shows how to create and use a timeout
Example code for Chapter 2.7 from "Build Web Application with Golang" Purpose: Shows how to create and use a timeout
build-web-application-with-golang/pt-br/code/src/apps/ch.2.7/unbuffered_channel command
Example code for Chapter 2.7 from "Build Web Application with Golang" Purpose: Shows how to create and use a unbuffered channel
Example code for Chapter 2.7 from "Build Web Application with Golang" Purpose: Shows how to create and use a unbuffered channel
build-web-application-with-golang/pt-br/code/src/apps/ch.3.2 command
Example code for Chapter 3.2 from "Build Web Application with Golang" Purpose: Shows how to acces the form values from the request
Example code for Chapter 3.2 from "Build Web Application with Golang" Purpose: Shows how to acces the form values from the request
build-web-application-with-golang/pt-br/code/src/apps/ch.3.4 command
Example code for Chapter 3.4 from "Build Web Application with Golang" Purpose: Shows how to create a handler for `http.ListenAndServe()` Run `go run main.go` then access `http://localhost:9090`
Example code for Chapter 3.4 from "Build Web Application with Golang" Purpose: Shows how to create a handler for `http.ListenAndServe()` Run `go run main.go` then access `http://localhost:9090`
build-web-application-with-golang/pt-br/code/src/apps/ch.4.1 command
Example code for Chapter 4.1 from "Build Web Application with Golang" Purpose: Shows how to create a simple login using a template Run: `go run main.go`, then access `http://localhost:9090` and `http://localhost:9090/login`
Example code for Chapter 4.1 from "Build Web Application with Golang" Purpose: Shows how to create a simple login using a template Run: `go run main.go`, then access `http://localhost:9090` and `http://localhost:9090/login`
build-web-application-with-golang/pt-br/code/src/apps/ch.4.2 command
Example code for Chapter 4.2 from "Build Web Application with Golang" Purpose: Shows how to perform server-side validation of user input from a form.
Example code for Chapter 4.2 from "Build Web Application with Golang" Purpose: Shows how to perform server-side validation of user input from a form.
build-web-application-with-golang/pt-br/code/src/apps/ch.4.2/validator
This file contains all the validators to validate the profile page.
This file contains all the validators to validate the profile page.
build-web-application-with-golang/pt-br/code/src/apps/ch.4.3 command
Example code for Chapter 4.3 from "Build Web Application with Golang" Purpose: Shows how to properly escape input
Example code for Chapter 4.3 from "Build Web Application with Golang" Purpose: Shows how to properly escape input
build-web-application-with-golang/pt-br/code/src/apps/ch.4.4 command
Example code for Chapter 3.2 from "Build Web Application with Golang" Purpose: Shows how to prevent duplicate submissions by using tokens Example code for Chapter 4.4 based off the code from Chapter 4.2 Run `go run main.go` then access http://localhost:9090
Example code for Chapter 3.2 from "Build Web Application with Golang" Purpose: Shows how to prevent duplicate submissions by using tokens Example code for Chapter 4.4 based off the code from Chapter 4.2 Run `go run main.go` then access http://localhost:9090
build-web-application-with-golang/pt-br/code/src/apps/ch.4.4/nonce
A nonce is a number or string used only once.
A nonce is a number or string used only once.
build-web-application-with-golang/pt-br/code/src/apps/ch.4.4/validator
This file contains all the validators to validate the profile page.
This file contains all the validators to validate the profile page.
build-web-application-with-golang/pt-br/code/src/apps/ch.4.5 command
Example code for Chapter 4.5 Purpose is to create a server to handle uploading files.
Example code for Chapter 4.5 Purpose is to create a server to handle uploading files.
build-web-application-with-golang/pt-br/code/src/apps/ch.4.5/nonce
A nonce is a number or string used only once.
A nonce is a number or string used only once.
build-web-application-with-golang/pt-br/code/src/apps/ch.4.5/validator
This file contains all the validators to validate the profile page.
This file contains all the validators to validate the profile page.
build-web-application-with-golang/pt-br/code/src/apps/ch.5.2 command
Example code for Chapter 5.2 from "Build Web Application with Golang" Purpose: Use SQL driver to perform simple CRUD operations.
Example code for Chapter 5.2 from "Build Web Application with Golang" Purpose: Use SQL driver to perform simple CRUD operations.
build-web-application-with-golang/pt-br/code/src/apps/ch.5.3 command
Example code for Chapter 5.3 from "Build Web Application with Golang" Purpose: Shows how to run simple CRUD operations using a sqlite driver
Example code for Chapter 5.3 from "Build Web Application with Golang" Purpose: Shows how to run simple CRUD operations using a sqlite driver
build-web-application-with-golang/pt-br/code/src/apps/ch.5.4 command
Example code for Chapter 5.4 from "Build Web Application with Golang" Purpose: Show how to perform CRUD operations using a postgres driver
Example code for Chapter 5.4 from "Build Web Application with Golang" Purpose: Show how to perform CRUD operations using a postgres driver
build-web-application-with-golang/pt-br/code/src/apps/ch.5.5 command
Example code for Chapter 5.5 Purpose is to show to use BeeDB ORM for basic CRUD operations for sqlite3
Example code for Chapter 5.5 Purpose is to show to use BeeDB ORM for basic CRUD operations for sqlite3
build-web-application-with-golang/pt-br/code/src/apps/ch.5.6/mongodb command
Example code for Chapter 5.6 from "Build Web Application with Golang" Purpose: Shows you have to perform basic CRUD operations for a mongodb driver.
Example code for Chapter 5.6 from "Build Web Application with Golang" Purpose: Shows you have to perform basic CRUD operations for a mongodb driver.
build-web-application-with-golang/pt-br/code/src/apps/ch.5.6/redis command
Example code for Chapter 5.6 from "Build Web Application with Golang" Purpose: Shows you have to perform basic CRUD operations for a redis driver.
Example code for Chapter 5.6 from "Build Web Application with Golang" Purpose: Shows you have to perform basic CRUD operations for a redis driver.
build-web-application-with-golang/pt-br/code/src/mymath
Example code for Chapter 1.2 from "Build Web Application with Golang" Purpose: Shows how to create a simple package called `mymath` This package must be imported from another go file to run.
Example code for Chapter 1.2 from "Build Web Application with Golang" Purpose: Shows how to create a simple package called `mymath` This package must be imported from another go file to run.
chisnall
codegangsta
bwag/databases command
bwag/deployment command
bwag/middleware command
essential-go/json-parser command
To make use of some of our collections knowledge, we will parse some JSON configuration into our application.
To make use of some of our collections knowledge, we will parse some JSON configuration into our application.
essential-go/variables command
Statically compiled languages usually get a bad rap because of how verbose they usually are in declaring which variables are what types.
Statically compiled languages usually get a bad rap because of how verbose they usually are in declaring which variables are what types.
essential-go/your-first-go-program command
There are 2 types of programs you can create with Go.
There are 2 types of programs you can create with Go.
goesToEleven
GolangTraining/02_package/stringutil
Package stringutil contains utility functions for working with strings.
Package stringutil contains utility functions for working with strings.
GolangTraining/27_code-in-process/56_twitter/05_document command
Our web app will be a micro-blogging site.
Our web app will be a micro-blogging site.
GolangTraining/27_code-in-process/56_twitter/06_document command
Our web app will be a micro-blogging site.
Our web app will be a micro-blogging site.
GolangTraining/27_code-in-process/56_twitter/07_app-engine command
Our web app will be a micro-blogging site.
Our web app will be a micro-blogging site.
GolangTraining/27_code-in-process/56_twitter/08_julien-schmidt command
Our web app will be a micro-blogging site.
Our web app will be a micro-blogging site.
GolangTraining/27_code-in-process/56_twitter/09_login-form command
Our web app will be a micro-blogging site.
Our web app will be a micro-blogging site.
Our web app will be a micro-blogging site.
Our web app will be a micro-blogging site.
GolangTraining/27_code-in-process/56_twitter/11_HTTPS-TLS command
Our web app will be a micro-blogging site.
Our web app will be a micro-blogging site.
GolangTraining/27_code-in-process/56_twitter/12_error-handling command
Our web app will be a micro-blogging site.
Our web app will be a micro-blogging site.
GolangTraining/27_code-in-process/56_twitter/13_login_unfinished command
Our web app will be a micro-blogging site.
Our web app will be a micro-blogging site.
GolangTraining/27_code-in-process/56_twitter/14_code-review command
Our web app will be a micro-blogging site.
Our web app will be a micro-blogging site.
GolangTraining/27_code-in-process/56_twitter/15_memcache-home command
Our web app will be a micro-blogging site.
Our web app will be a micro-blogging site.
GolangTraining/27_code-in-process/56_twitter/16_abstract-memcache-code command
Our web app will be a micro-blogging site.
Our web app will be a micro-blogging site.
GolangTraining/27_code-in-process/56_twitter/17_memcache-templates command
Our web app will be a micro-blogging site.
Our web app will be a micro-blogging site.
GolangTraining/27_code-in-process/56_twitter/18_abstract-API-Model command
Our web app will be a micro-blogging site.
Our web app will be a micro-blogging site.
GolangTraining/27_code-in-process/56_twitter/19_abstract-API-Model_AE-fix/App command
Our web app will be a micro-blogging site.
Our web app will be a micro-blogging site.
GolangTraining/27_code-in-process/56_twitter/20_reverting_to_only_package-main command
Our web app will be a micro-blogging site.
Our web app will be a micro-blogging site.
GolangTraining/27_code-in-process/56_twitter/21_set-cookie_no-PATH command
Our web app will be a micro-blogging site.
Our web app will be a micro-blogging site.
GolangTraining/27_code-in-process/56_twitter/22_set-cookie_PATH command
Our web app will be a micro-blogging site.
Our web app will be a micro-blogging site.
GolangTraining/27_code-in-process/56_twitter/23_set-cookie-UUID command
Our web app will be a micro-blogging site.
Our web app will be a micro-blogging site.
GolangTraining/27_code-in-process/56_twitter/24_session command
Our web app will be a micro-blogging site.
Our web app will be a micro-blogging site.
GolangTraining/27_code-in-process/56_twitter/25_session-all-pages command
Our web app will be a micro-blogging site.
Our web app will be a micro-blogging site.
GolangTraining/27_code-in-process/56_twitter/26_login command
Our web app will be a micro-blogging site.
Our web app will be a micro-blogging site.
GolangTraining/27_code-in-process/56_twitter/27_logout command
Our web app will be a micro-blogging site.
Our web app will be a micro-blogging site.
GolangTraining/27_code-in-process/56_twitter/28_code-review command
Our web app will be a micro-blogging site.
Our web app will be a micro-blogging site.
GolangTraining/27_code-in-process/56_twitter/29_password-encryption command
Our web app will be a micro-blogging site.
Our web app will be a micro-blogging site.
GolangTraining/27_code-in-process/56_twitter/30_turn-off-memcache command
Our web app will be a micro-blogging site.
Our web app will be a micro-blogging site.
GolangTraining/27_code-in-process/56_twitter/31_modal-post-tweet command
Our web app will be a micro-blogging site.
Our web app will be a micro-blogging site.
GolangTraining/27_code-in-process/56_twitter/32_tweets command
Our web app will be a micro-blogging site.
Our web app will be a micro-blogging site.
GolangTraining/27_code-in-process/56_twitter/33_display-all-tweets command
Our web app will be a micro-blogging site.
Our web app will be a micro-blogging site.
GolangTraining/27_code-in-process/56_twitter/34_humanize command
Our web app will be a micro-blogging site.
Our web app will be a micro-blogging site.
GolangTraining/27_code-in-process/56_twitter/36_user-tweets command
Our web app will be a micro-blogging site.
Our web app will be a micro-blogging site.
GolangTraining/27_code-in-process/56_twitter/38_follow command
Our web app will be a micro-blogging site.
Our web app will be a micro-blogging site.
GolangTraining/27_code-in-process/56_twitter/39_unfollow command
Our web app will be a micro-blogging site.
Our web app will be a micro-blogging site.
GolangTraining/27_code-in-process/56_twitter/41_twitter-send-email command
Our web app will be a micro-blogging site.
Our web app will be a micro-blogging site.
GolangTraining/27_code-in-process/56_twitter/42_following command
Our web app will be a micro-blogging site.
Our web app will be a micro-blogging site.
GolangTraining/27_code-in-process/56_twitter/43_following-me command
Our web app will be a micro-blogging site.
Our web app will be a micro-blogging site.
GolangTraining/27_code-in-process/56_twitter/44_code-review command
Our web app will be a micro-blogging site.
Our web app will be a micro-blogging site.
Our web app will be a micro-blogging site.
golang-web-dev/050_cloud-storage/16_gcs-example
[START sample] Package gcsdemo is an example App Engine app using the Google Cloud Storage API.
[START sample] Package gcsdemo is an example App Engine app using the Google Cloud Storage API.
goinaction
code/chapter10/listing01 command
Sample program demonstrating struct composition.
Sample program demonstrating struct composition.
code/chapter10/listing02 command
Sample program demonstrating decoupling with interfaces.
Sample program demonstrating decoupling with interfaces.
code/chapter10/listing03 command
Sample program demonstrating interface composition.
Sample program demonstrating interface composition.
code/chapter10/listing04 command
Sample program demonstrating decoupling with interface composition.
Sample program demonstrating decoupling with interface composition.
code/chapter10/listing05 command
Sample program demonstrating when implicit interface conversions are provided by the compiler.
Sample program demonstrating when implicit interface conversions are provided by the compiler.
code/chapter10/listing06 command
Sample program to show how you can personally mock concrete types when you need to for your own packages or tests.
Sample program to show how you can personally mock concrete types when you need to for your own packages or tests.
code/chapter10/listing06/pubsub
Package pubsub simulates a package that provides publication/subscription type services.
Package pubsub simulates a package that provides publication/subscription type services.
code/chapter3/dbdriver command
Sample program to show how to show you how to briefly work with the sql package.
Sample program to show how to show you how to briefly work with the sql package.
code/chapter3/wordcount command
Sample program to show how to show you how to briefly work with io.
Sample program to show how to show you how to briefly work with io.
code/chapter3/words
Package words provides support for counting words.
Package words provides support for counting words.
code/chapter5/listing11 command
Sample program to show how to declare methods and how the Go compiler supports them.
Sample program to show how to declare methods and how the Go compiler supports them.
code/chapter5/listing34 command
Sample program to show how to write a simple version of curl using the io.Reader and io.Writer interface support.
Sample program to show how to write a simple version of curl using the io.Reader and io.Writer interface support.
code/chapter5/listing35 command
Sample program to show how a bytes.Buffer can also be used with the io.Copy function.
Sample program to show how a bytes.Buffer can also be used with the io.Copy function.
code/chapter5/listing36 command
Sample program to show how to use an interface in Go.
Sample program to show how to use an interface in Go.
code/chapter5/listing46 command
Sample program to show how you can't always get the address of a value.
Sample program to show how you can't always get the address of a value.
code/chapter5/listing48 command
Sample program to show how polymorphic behavior with interfaces.
Sample program to show how polymorphic behavior with interfaces.
code/chapter5/listing50 command
Sample program to show how to embed a type into another type and the relationship between the inner and outer type.
Sample program to show how to embed a type into another type and the relationship between the inner and outer type.
code/chapter5/listing56 command
Sample program to show how embedded types work with interfaces.
Sample program to show how embedded types work with interfaces.
code/chapter5/listing60 command
Sample program to show what happens when the outer and inner type implement the same interface.
Sample program to show what happens when the outer and inner type implement the same interface.
code/chapter5/listing64 command
Sample program to show how the program can't access an unexported identifier from another package.
Sample program to show how the program can't access an unexported identifier from another package.
code/chapter5/listing64/counters
Package counters provides alert counter support.
Package counters provides alert counter support.
code/chapter5/listing68 command
Sample program to show how the program can access a value of an unexported identifier from another package.
Sample program to show how the program can access a value of an unexported identifier from another package.
code/chapter5/listing68/counters
Package counters provides alert counter support.
Package counters provides alert counter support.
code/chapter5/listing71 command
Sample program to show how unexported fields from an exported struct type can't be accessed directly.
Sample program to show how unexported fields from an exported struct type can't be accessed directly.
code/chapter5/listing71/entities
Package entities contains support for types of people in the system.
Package entities contains support for types of people in the system.
code/chapter5/listing74 command
Sample program to show how unexported fields from an exported struct type can't be accessed directly.
Sample program to show how unexported fields from an exported struct type can't be accessed directly.
code/chapter5/listing74/entities
Package entities contains support for types of people in the system.
Package entities contains support for types of people in the system.
code/chapter6/listing01 command
This sample program demonstrates how to create goroutines and how the scheduler behaves.
This sample program demonstrates how to create goroutines and how the scheduler behaves.
code/chapter6/listing04 command
This sample program demonstrates how the goroutine scheduler will time slice goroutines on a single thread.
This sample program demonstrates how the goroutine scheduler will time slice goroutines on a single thread.
code/chapter6/listing07 command
This sample program demonstrates how to create goroutines and how the goroutine scheduler behaves with two logical processor.
This sample program demonstrates how to create goroutines and how the goroutine scheduler behaves with two logical processor.
code/chapter6/listing09 command
This sample program demonstrates how to create race conditions in our programs.
This sample program demonstrates how to create race conditions in our programs.
code/chapter6/listing13 command
This sample program demonstrates how to use the atomic package to provide safe access to numeric types.
This sample program demonstrates how to use the atomic package to provide safe access to numeric types.
code/chapter6/listing15 command
This sample program demonstrates how to use the atomic package functions Store and Load to provide safe access to numeric types.
This sample program demonstrates how to use the atomic package functions Store and Load to provide safe access to numeric types.
code/chapter6/listing16 command
This sample program demonstrates how to use a mutex to define critical sections of code that need synchronous access.
This sample program demonstrates how to use a mutex to define critical sections of code that need synchronous access.
code/chapter6/listing20 command
This sample program demonstrates how to use an unbuffered channel to simulate a game of tennis between two goroutines.
This sample program demonstrates how to use an unbuffered channel to simulate a game of tennis between two goroutines.
code/chapter6/listing22 command
This sample program demonstrates how to use an unbuffered channel to simulate a relay race between four goroutines.
This sample program demonstrates how to use an unbuffered channel to simulate a relay race between four goroutines.
code/chapter6/listing24 command
This sample program demonstrates how to use a buffered channel to work on multiple tasks with a predefined number of goroutines.
This sample program demonstrates how to use a buffered channel to work on multiple tasks with a predefined number of goroutines.
code/chapter7/patterns/pool
Example provided with help from Fatih Arslan and Gabriel Aszalos.
Example provided with help from Fatih Arslan and Gabriel Aszalos.
code/chapter7/patterns/pool/main command
This sample program demonstrates how to use the pool package to share a simulated set of database connections.
This sample program demonstrates how to use the pool package to share a simulated set of database connections.
code/chapter7/patterns/runner
Example is provided with help by Gabriel Aszalos.
Example is provided with help by Gabriel Aszalos.
code/chapter7/patterns/runner/main command
This sample program demonstrates how to use a channel to monitor the amount of time the program is running and terminate the program if it runs too long.
This sample program demonstrates how to use a channel to monitor the amount of time the program is running and terminate the program if it runs too long.
code/chapter7/patterns/search
Package search : search.go manages the searching of results against Google, Yahoo and Bing.
Package search : search.go manages the searching of results against Google, Yahoo and Bing.
code/chapter7/patterns/search/main command
This sample program demonstrates how to implement a pattern for concurrent requesting results from different systems and either wait for all the results to return or just the first one.
This sample program demonstrates how to implement a pattern for concurrent requesting results from different systems and either wait for all the results to return or just the first one.
code/chapter7/patterns/semaphore command
This sample program demonstrates how to implement a semaphore using channels that can allow multiple reads but a single write.
This sample program demonstrates how to implement a semaphore using channels that can allow multiple reads but a single write.
code/chapter7/patterns/work
Example provided with help from Jason Waldrip.
Example provided with help from Jason Waldrip.
code/chapter7/patterns/work/main command
This sample program demonstrates how to use the work package to use a pool of goroutines to get work done.
This sample program demonstrates how to use the work package to use a pool of goroutines to get work done.
code/chapter8/listing03 command
This sample program demonstrates how to use the base log package.
This sample program demonstrates how to use the base log package.
code/chapter8/listing11 command
This sample program demonstrates how to create customized loggers.
This sample program demonstrates how to create customized loggers.
code/chapter8/listing24 command
This sample program demonstrates how to decode a JSON response using the json package and NewDecoder function.
This sample program demonstrates how to decode a JSON response using the json package and NewDecoder function.
code/chapter8/listing27 command
This sample program demonstrates how to decode a JSON string.
This sample program demonstrates how to decode a JSON string.
code/chapter8/listing29 command
This sample program demonstrates how to decode a JSON string.
This sample program demonstrates how to decode a JSON string.
code/chapter8/listing31 command
This sample program demonstrates how to marshal a JSON string.
This sample program demonstrates how to marshal a JSON string.
code/chapter8/listing37 command
Sample program to show how different functions from the standard library use the io.Writer interface.
Sample program to show how different functions from the standard library use the io.Writer interface.
code/chapter8/listing46 command
Sample program to show how to write a simple version of curl using the io.Reader and io.Writer interface support.
Sample program to show how to write a simple version of curl using the io.Reader and io.Writer interface support.
code/chapter9/listing17 command
This sample code implement a simple web service.
This sample code implement a simple web service.
code/chapter9/listing17/handlers
Package handlers provides the endpoints for the web service.
Package handlers provides the endpoints for the web service.
golang
example/appengine-hello
Package hello is a simple App Engine application that replies to requests on /hello with a welcoming message.
Package hello is a simple App Engine application that replies to requests on /hello with a welcoming message.
example/gotypes command
The weave command is a simple preprocessor for markdown files.
The weave command is a simple preprocessor for markdown files.
example/gotypes/doc command
The doc command prints the doc comment of a package-level object.
The doc command prints the doc comment of a package-level object.
!+
example/gotypes/hugeparam command
The hugeparam command identifies by-value parameters that are larger than n bytes.
The hugeparam command identifies by-value parameters that are larger than n bytes.
!+
example/gotypes/skeleton command
The skeleton command prints the boilerplate for a concrete type that implements the specified interface type.
The skeleton command prints the boilerplate for a concrete type that implements the specified interface type.
example/hello command
example/outyet command
outyet is a web server that announces whether or not a particular Go version has been tagged.
outyet is a web server that announces whether or not a particular Go version has been tagged.
example/stringutil
Package stringutil contains utility functions for working with strings.
Package stringutil contains utility functions for working with strings.
example/template command
Command template is a trivial web server that uses the text/template (and html/template) package's "block" feature to implement a kind of template inheritance.
Command template is a trivial web server that uses the text/template (and html/template) package's "block" feature to implement a kind of template inheritance.
tour/gotour command
golangsam
AnyType
Package anytype provides templates and it's subdirectories hold refining templates, and resulting go code
Package anytype provides templates and it's subdirectories hold refining templates, and resulting go code
AnyType/chan
Package tube provides base templates for various flavours of tubes
Package tube provides base templates for various flavours of tubes
jochasinga
kat-co
masterminds
go-in-practice/chapter10/hellopb
Package chapter10 is a generated protocol buffer package.
Package chapter10 is a generated protocol buffer package.
go-in-practice/chapter10/userpb
Package chapter10 is a generated protocol buffer package.
Package chapter10 is a generated protocol buffer package.
matryer
goblueprints/chapter10/vault/pb
Package pb is a generated protocol buffer package.
Package pb is a generated protocol buffer package.
goblueprints/chapter11/vault/pb
Package pb is a generated protocol buffer package.
Package pb is a generated protocol buffer package.
mkaz
working-with-go command
all programs must be part of a package and main is the default package
all programs must be part of a package and main is the default package
*
mmcgrana
gobyexample/examples/hello-world command
Our first program will print the classic "hello world" message.
Our first program will print the classic "hello world" message.
gobyexample/examples/line-filters command
Here's an example line filter in Go that writes a capitalized version of all input text.
Here's an example line filter in Go that writes a capitalized version of all input text.
mshindle
tidbits command
nathany
get-programming-with-go command
Script to remove AsciiDoctor comments from source code listings when brought over from the book.
Script to remove AsciiDoctor comments from source code listings when brought over from the book.
get-programming-with-go/cmd
Package cmd provides helper functions for testing main packages.
Package cmd provides helper functions for testing main packages.
get-programming-with-go/lesson02/lightspeed command
How long does it take to get to Mars?
How long does it take to get to Mars?
get-programming-with-go/lesson02/mars command
My weight loss program.
My weight loss program.
get-programming-with-go/lesson08/alpha command
Alpha Centauri is 41.3 trillion kilometers away
Alpha Centauri is 41.3 trillion kilometers away
packtpublishing
Building-RESTful-Web-Services-with-Go/Chapter06/grpc_example/datafiles
Package datafiles is a generated protocol buffer package.
Package datafiles is a generated protocol buffer package.
Building-RESTful-Web-Services-with-Go/Chapter06/protofiles
Package protofiles is a generated protocol buffer package.
Package protofiles is a generated protocol buffer package.
Building-RESTful-Web-Services-with-Go/Chapter06/serverPush/datafiles
Package datafiles is a generated protocol buffer package.
Package datafiles is a generated protocol buffer package.
Learning-Go-Programming/ch01 command
Calculate sum of all multiple of 3 and 5 less MAX value.
Calculate sum of all multiple of 3 and 5 less MAX value.
Learning-Go-Programming/ch05 command
anagram.go
anagram.go
Learning-Go-Programming/ch06/current
Package current offers an api with functions to calculate current values in a DC circuit using Ohm's law
Package current offers an api with functions to calculate current values in a DC circuit using Ohm's law
Learning-Go-Programming/ch06/power
Package power offers an API with functions to calculate electrical power in a DC circuit
Package power offers an API with functions to calculate electrical power in a DC circuit
Learning-Go-Programming/ch06/resistor
Package resistor offers an API with functions to calculate resistance in an DC circuit using Ohm's law
Package resistor offers an API with functions to calculate resistance in an DC circuit using Ohm's law
Learning-Go-Programming/ch06/volt
Package volt offers an API with functions to calculate voltage in a DC circuit using Ohm's law.
Package volt offers an API with functions to calculate voltage in a DC circuit using Ohm's law.
Learning-Go-Programming/ch09 command
Calculate sum of all multiple of 3 and 5 less than MAX value.
Calculate sum of all multiple of 3 and 5 less than MAX value.
Security-with-Go/Chapter03/archive/unzip_example command
This example uses zip but standard library also supports tar archives
This example uses zip but standard library also supports tar archives
Security-with-Go/Chapter03/archive/zip_example command
This example uses zip but standard library also supports tar archives
This example uses zip but standard library also supports tar archives
Security-with-Go/Chapter03/compression/gunzip_example command
This example uses gzip but standard library also supports zlib, bz2, flate, and lzw
This example uses gzip but standard library also supports zlib, bz2, flate, and lzw
Security-with-Go/Chapter03/compression/gzip_example command
This example uses gzip but standard library also supports zlib, bz2, flate, and lzw
This example uses gzip but standard library also supports zlib, bz2, flate, and lzw
Security-with-Go/Chapter04/stego/create_test_archive command
This example uses zip but standard library also supports tar archives
This example uses zip but standard library also supports tar archives
Security-with-Go/Chapter10/crawl_depth_first command
Crawl a website, depth-first, listing all unique paths found
Crawl a website, depth-first, listing all unique paths found
Security-with-Go/Chapter10/custom_user_agent command
Change HTTP user agent
Change HTTP user agent
Security-with-Go/Chapter10/find_documents command
Load a URL and list all documents found
Load a URL and list all documents found
Security-with-Go/Chapter10/find_unlisted_files command
Look for unlisted files on a domain
Look for unlisted files on a domain
Security-with-Go/Chapter10/get_links command
Load a URL and list all links found
Load a URL and list all links found
Security-with-Go/Chapter10/http_find_comments command
Search through a URL and find HTML comments
Search through a URL and find HTML comments
Security-with-Go/Chapter10/http_find_emails command
Search through a URL and find mailto links with email addresses
Search through a URL and find mailto links with email addresses
Security-with-Go/Chapter10/http_head command
Perform an HTTP HEAD request on a URL and print out headers
Perform an HTTP HEAD request on a URL and print out headers
Security-with-Go/Chapter10/http_search_word command
Perform an HTTP request to load a page and search for a string
Perform an HTTP request to load a page and search for a string
Security-with-Go/Chapter13/bind_shell command
Call back to a remote server and open a shell session
Call back to a remote server and open a shell session
Security-with-Go/Chapter13/reverse_shell command
Call back to a remote server and open a shell session
Call back to a remote server and open a shell session
quii
rosettacode-to-go
tasks/100-doors command
tasks/24-game command
tasks/A+B command
tasks/Amb command
tasks/Animation command
tasks/Arrays command
tasks/CRC-32 command
tasks/Closest-pair-problem command
implementation following algorithm described in http://www.cs.umd.edu/~samir/grant/cp.pdf
implementation following algorithm described in http://www.cs.umd.edu/~samir/grant/cp.pdf
tasks/Currying command
tasks/DNS-query command
tasks/Deepcopy command
tasks/Delegates command
tasks/Documentation
Example serves as an example but does nothing useful.
Example serves as an example but does nothing useful.
tasks/Entropy command
tasks/Events command
tasks/Factorial command
tasks/File-size command
tasks/Filter command
tasks/FizzBuzz command
tasks/Fork command
tasks/Fractran command
tasks/Gray-code command
tasks/HTTP command
tasks/HTTPS command
tasks/Hamming-numbers command
Hamming project main.go
Hamming project main.go
tasks/Hash-join command
tasks/Hostname command
tasks/IBAN command
tasks/Infinity command
tasks/Inheritance-Multiple command
Example of composition of anonymous structs
Example of composition of anonymous structs
tasks/JSON command
tasks/K-d-tree command
Implmentation following pseudocode from "An intoductory tutorial on kd-trees" by Andrew W. Moore, Carnegie Mellon University, PDF accessed from http://www.autonlab.org/autonweb/14665
Implmentation following pseudocode from "An intoductory tutorial on kd-trees" by Andrew W. Moore, Carnegie Mellon University, PDF accessed from http://www.autonlab.org/autonweb/14665
tasks/Largest-int-from-concatenated-ints command
Variation of method 3.
Variation of method 3.
tasks/Long-multiplication command
Long multiplication per WP article referenced by task description.
Long multiplication per WP article referenced by task description.
tasks/Loops-For command
tasks/MD4 command
tasks/MD5 command
tasks/Mad-Libs command
tasks/Map-range command
tasks/Menu command
tasks/Metronome command
tasks/Morse-code command
Command morse translates an input string into morse code, showing the output on the console, and playing it as sound.
Command morse translates an input string into morse code, showing the output on the console, and playing it as sound.
tasks/N-queens-problem command
A fairly literal translation of the example program on the referenced WP page.
A fairly literal translation of the example program on the referenced WP page.
tasks/Nth command
tasks/OpenGL command
triangle displays a smooth shaded triangle with OpenGL.
triangle displays a smooth shaded triangle with OpenGL.
tasks/Paraffins command
tasks/Pi command
tasks/Power-set command
tasks/Quine command
tasks/RSA-code command
tasks/Rot-13 command
tasks/SEDOLs command
tasks/SHA-1 command
tasks/SHA-256 command
tasks/Semiprime command
tasks/Set command
tasks/Sleep command
tasks/Sockets command
tasks/Sokoban command
tasks/Soundex command
tasks/Substring command
tasks/Sudoku command
tasks/Textonyms command
tasks/Topswops command
Adapted from http://www-cs-faculty.stanford.edu/~uno/programs/topswops.w at Donald Knuth's web site.
Adapted from http://www-cs-faculty.stanford.edu/~uno/programs/topswops.w at Donald Knuth's web site.
tasks/Unix-ls command
tasks/Wireworld command
tasks/Word-wrap command
tasks/XML-Input command
tasks/XML-XPath command
shapeshed
golang-book-examples/hour04 command
recursive function
recursive function
golang-book-examples/hour14/example03
Package example03 shows how to use the godoc tool.
Package example03 shows how to use the godoc tool.
simonWaldherr
thewhitetulip
xusiwei
learn-golang command

Jump to

Keyboard shortcuts

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