go-examples

module
v0.0.0-...-86cb157 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2020 License: MIT

README

Go Examples

GoDoc

Here are some Go examples I picked, which are classic, idiomatic, or explanatory.

Pull the Source Code

$ git clone git@github.com:xvrzhao/go-examples.git

View the Source Code and Documentation

Locally, if you installed godoc, run the following command under the project root directory, then open this link.

$ godoc -http=:6060

Alternatively, view on GoDoc directly without pulling the source code, but then you can't run tests.

Directories

Path Synopsis
Package context contains functions which demonstrate how to use context in Go.
Package context contains functions which demonstrate how to use context in Go.
Package http contains some demo functions for HTTP.
Package http contains some demo functions for HTTP.
Package interfaces contains some demo functions for interface usage in Go.
Package interfaces contains some demo functions for interface usage in Go.
Package race_and_sync contains some demo functions of data races scenarios and the solutions for that.
Package race_and_sync contains some demo functions of data races scenarios and the solutions for that.
Package unsafe demonstrates how to manipulate memory directly bypass type checks.
Package unsafe demonstrates how to manipulate memory directly bypass type checks.

Jump to

Keyboard shortcuts

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