blob: beeee1f4c560818e19adcdaa09c8da4c683540dc [file] [log] [blame] [view]
Jason Buberelf7f7d182015-08-21 16:44:01 -07001Welcome to the Go wiki, a collection of information about the [Go Programming Language](https://golang.org/). [Awesome Go](http://awesome-go.com/) is another great resource for Go programmers, curated by the Go community.
adg87f483a2014-12-09 16:42:53 -08002
Jason Buberel3bf56bc2015-11-14 14:11:48 -08003##Contributing##
4
5* This wiki is open to editing by any member of the Go community with a Github account.
6* If you would like to add a new page, please first open an issue in the [Go issue tracker](https://github.com/golang/go/issues) with the prefix 'wiki' to propose the addition. Clearly state why the content does not fit into any of the existing pages.
7* Because renaming of pages in the wiki can break external links, please open an issue before renaming or removing any wiki page.
8
9
Jason Buberel46369702015-08-21 13:21:29 -070010Table of Contents
11=================
adg87f483a2014-12-09 16:42:53 -080012
Jason Buberel46369702015-08-21 13:21:29 -070013+ [Getting started with Go](#getting-started-with-go)
14+ [Working with Go](#working-with-go)
15+ [Learning more about Go](#learning-more-about-go)
16+ [The Go Community](#the-go-community)
17+ [Using the go toolchain](#using-the-go-toolchain)
18+ [Additional Go Programming Wikis](#additional-go-programming-wikis)
Jacob Hayese244fd12015-09-24 17:55:52 -050019+ [Online Services that work with Go](#online-services-that-work-with-go)
Jason Buberel46369702015-08-21 13:21:29 -070020+ [Troubleshooting Go Programs in Production](#troubleshooting-go-programs-in-production)
21+ [Contributing to the Go Project](#contributing-to-the-go-project)
22+ [Platform Specific Information](#platform-specific-information)
23+ [Release Specific Information](#release-specific-information)
adg87f483a2014-12-09 16:42:53 -080024
adg87f483a2014-12-09 16:42:53 -080025
Jason Buberel46369702015-08-21 13:21:29 -070026## Getting started with Go
27
28 - [The Go Tour](http://tour.golang.org) is the best place to start.
29 - [Effective Go](https://golang.org/doc/effective_go.html) will help you learn how to write idiomatic Go code.
30 - [Go standard library documentation](https://golang.org/pkg/) to familiarize yourself with the standard library.
31 - [Use the Go Playground](http://play.golang.org) to test out Go programs in your browser.
Jason Buberel7e6cbc32015-08-30 08:32:46 -070032 - Still not convinced? Check out this list of [Go Users](GoUsers) and a few of their [Success stories](SuccessStories). We've also assembled a long list of reasons [why you should give Go a try](whygo).
Jason Buberel46369702015-08-21 13:21:29 -070033
34## Working with Go
35
36Ready to write some Go code of your own? Here are a few links to help you get started.
37
38 - Install and Setup your Environment
39 - Start here: [Official Installation Documentation](https://golang.org/doc/install)
Jason Buberel0e6e3cd2015-09-11 17:35:30 -070040 - If you prefer to install from source, [read this first](https://golang.org/doc/install/source).
Jason Buberel775f3d22015-08-21 13:34:00 -070041 - [InstallFromSource](InstallFromSource) - Additional tips on source installs.
Jason Buberel0e6e3cd2015-09-11 17:35:30 -070042 - Windows user? [Install and configure Go, Git and Atom for Windows](https://github.com/abourget/getting-started-with-golang)
Jason Buberel042985a2015-09-12 14:14:00 -070043 - Mac user? [How I start - Go](https://howistart.org/posts/go/1) - A step-by-step guide to installing Go and building your first web service.
Jason Buberel775f3d22015-08-21 13:34:00 -070044 - Having installation problems? [InstallTroubleShooting](InstallTroubleShooting)
Jason Buberel46369702015-08-21 13:21:29 -070045 - Make sure you have your [$GOPATH environment variable set correctly](https://golang.org/doc/install/source#gopath)
Jason Buberel775f3d22015-08-21 13:34:00 -070046 - If you need additional tips on using [$GOPATH, go here](GOPATH).
47 - [MultipleGoRoots](MultipleGoRoots) - More advanced information on working with multiple go installations and the `$GOROOT` variable.
48 - [Go IDEs and Editors](IDEsAndTextEditorPlugins) - Information on how to use your favorite editor with Go.
Jason Buberel042985a2015-09-12 14:14:00 -070049 - [Tools for working with Go code](CodeTools) - Formatting, linting, vetting, refactoring, navigation and visualization.
Jason Buberel945d31c2015-10-03 08:54:20 -070050 - Finding Go Libraries and Packages
Jason Bubereld18c5ad2015-09-02 08:49:51 -070051 - Start here: [Go open source projects](Projects).
52 - Search for Go packages: [godoc.org](http://godoc.org)
Jason Buberel945d31c2015-10-03 08:54:20 -070053 - Visualization of the [Go open source package graph](https://anvaka.github.io/pm/#/galaxy/gosearch?l=1)
Jason Buberel4944c9d2015-10-27 22:58:52 -070054 - [Managing your dependencies](PackageManagementTools) - An overview of the tools you can use to manage third-party packages (vendoring).
Jason Buberel46369702015-08-21 13:21:29 -070055 - Publishing Go Packages as Open Source
Jason Buberel775f3d22015-08-21 13:34:00 -070056 - Getting ready to publish your package? [Start here.](PackagePublishing)
Jason Buberel016aaf82015-08-23 15:51:34 -070057 - [The Go Checklist](https://github.com/matttproud/gochecklist) - A comprehensive guide for publishing a project.
Jason Buberel775f3d22015-08-21 13:34:00 -070058 - [How to layout your GitHub repo](GithubCodeLayout) to make it easy to for other Go programmers to use with the `go get` command.
Jason Buberel4e8bd432015-08-23 17:58:11 -070059 - [Go Package, Go](https://johnsto.co.uk/blog/go-package-go) - A few recommendations for making Go packages easy to use.
Jason Buberel46369702015-08-21 13:21:29 -070060
61## Learning more about Go
62
Jason Buberelcc8e0f02015-08-29 08:40:48 -070063Once you have an overview of the language, here are resources you can use to learn more.
Jason Buberel46369702015-08-21 13:21:29 -070064
Jason Buberel6c3bd9e2015-08-23 11:04:43 -070065 - [Learning Go](Learn) - A collection of resources for learning Go - beginner to advanced.
Jason Buberelcc333832015-09-01 17:51:56 -070066 - [Best Practices for a New Go Developer](https://medium.com/@IndianGuru/best-practices-for-a-new-go-developer-8660384302fc) - Insights from Go community members.
Jason Buberel80252712015-08-29 14:27:11 -070067 - [Server programming](LearnServerProgramming) - Building web, mobile, and API servers.
Jason Buberel6c3bd9e2015-08-23 11:04:43 -070068 - [More on concurrency](LearnConcurrency)
Guillaume Laforgecb00bf32015-08-24 06:11:38 +020069 - [More on error handling](LearnErrorHandling)
Jason Buberel6c3bd9e2015-08-23 11:04:43 -070070 - [More on testing](LearnTesting)
Jason Buberel22f71b62015-08-29 15:10:51 -070071 - [More on mobile - Android and iOS](Mobile)
Jason Buberelbfc0f3f2015-08-23 11:06:00 -070072 - [Books](Books) - A list of Go books that have been published (ebook, paper)
Jason Buberel4ef62682015-09-05 14:05:06 -070073 - [Blogs](Blogs) - Blogs about Go
74 - [Podcasts](Podcasts) - Podcasts and episodes featuring Go
Jason Buberel46369702015-08-21 13:21:29 -070075 - Videos, Talks and Presentations
Jason Buberelf7f7d182015-08-21 16:44:01 -070076 - [GopherVids](http://gophervids.appspot.com/) is a searchable index of videos about Go.
Jason Buberel775f3d22015-08-21 13:34:00 -070077 - [GoTalks](GoTalks) - A collection of talks from Go conferences and meetups.
78 - [Screencasts](Screencasts)
Jason Buberelbfc0f3f2015-08-23 11:06:00 -070079 - [Articles](Articles) - A collection of articles to help you learn more about Go.
Jason Buberel8ccafcd2015-08-28 10:52:53 -070080 - [Training](Training) - Free and commercial, online and classroom training for Go.
Jason Buberel7e6cbc32015-08-30 08:32:46 -070081 - [University Courses](Courses) - A list of CS programs and classes using Go.
Jason Buberel775f3d22015-08-21 13:34:00 -070082 - [Resources for non-English speakers](NonEnglish)
Jason Buberel46369702015-08-21 13:21:29 -070083
84## The Go Community
85
Jason Buberel016aaf82015-08-23 15:51:34 -070086Here are some of the places where you can find Gophers online. To get a sense of what it means to be a member of the Go community, read [Damian Gryski's keynote from the GolankUK 2015 conference](https://medium.com/@dgryski/the-go-community-f0d00e3a19e) or watch [Andrew Gerrand's closing keynote from GopherCon 2015](https://www.youtube.com/watch?v=0ht89TxZZnk).
Jason Buberel46369702015-08-21 13:21:29 -070087
Jason Buberelb67fb582015-09-28 09:02:38 -070088
89- Where Gophers hangout online:
90 - [The Go Forum](https://forum.golangbridge.org/) - An all-purpose discussion forum for the Go community.
91 - [Gophers Slack Channel](http://gophers.slack.com/) - For real-time chat ([request membership](http://blog.gopheracademy.com/gophers-slack-community/)).
Kenny609ebc22015-10-16 17:36:26 +010092 - [Golang News](http://golangnews.com) - For curated links about Go Programming.
Jason Buberelb67fb582015-09-28 09:02:38 -070093 - There is also a [/r/golang](http://reddit.com/r/golang) sub-reddit.
94 - On Twitter, follow the [@golang](https://twitter.com/golang) account and keep tabs on the [#golang](https://twitter.com/search?q=%23golang&src=typd) hashtag.
95 - We've also got a landing page on [Stack Overflow](http://stackoverflow.com/tags/go) for Go Q&A.
Jason Buberel46369702015-08-21 13:21:29 -070096- Mailing Lists
97 - The mailing list for Go users is [golang-nuts](https://groups.google.com/forum/#!forum/golang-nuts) - very high traffic.
Jason Buberel775f3d22015-08-21 13:34:00 -070098 - Before you post, [check to see if it's already been answered](http://stackoverflow.com/tags/go), then read [these tips on how to ask a good question](HowToAsk)
Jason Buberel7e6cbc32015-08-30 08:32:46 -070099 - For discussions about the core Go open source project, join [golang-dev](https://groups.google.com/forum/#!forum/golang-dev).
Jason Buberel46369702015-08-21 13:21:29 -0700100 - To get just our release announcements, join [golang-announce](https://groups.google.com/forum/#!forum/golang-announce)
Jason Buberel46369702015-08-21 13:21:29 -0700101- User Groups & Meetups - There are [Go Meetups in many cities](http://www.meetup.com/find/?allMeetups=false&keywords=golang&radius=Infinity&userFreeform=Sunnyvale%2C+CA&mcId=z94086&mcName=Sunnyvale%2C+CA&sort=recommended&eventFilter=mysugg)
Carlisia Campos88996ac2015-11-07 14:29:12 -0800102 - [GoBridge](http://golangbridge.org) - Volunteers helping underrepresented communities to teach technical skills and to foster diversity in Go.
Jason Buberel30377742015-09-19 10:28:53 -0700103 - [Women Who Go](http://www.womenwhogo.org/)
Jason Buberel775f3d22015-08-21 13:34:00 -0700104 - See here for [additional information GoUserGroups](GoUserGroups)
Jason Buberel0f8396c2015-08-22 12:59:19 -0700105- [Conferences](Conferences) - A list of upcoming and past Go conferences and major events.
Carlisia Campos2802cbf2015-10-21 09:34:03 -0700106- [Companies using Go](GoUsers) - A comprehensive list of companies using Go throughout the world.
Jason Buberel7e6cbc32015-08-30 08:32:46 -0700107- Learn more about the [Go Gopher images](Gopher) by Renee French.
Jason Buberel46369702015-08-21 13:21:29 -0700108
109## Using the go toolchain
110
111 - Start with the standard documentation for the `go` command [available here](https://golang.org/cmd/go/)
Jason Buberelf9bec162015-08-23 08:23:38 -0700112 - Using the Go 1.5 `GO15VENDOREXPERIMENT`
113 - Start here for the [official documentation](https://golang.org/cmd/go/#hdr-Vendor_Directories).
Chris Passas456f0b42016-04-01 17:00:34 -0400114(https://twitter.com/freeformz).
Jason Buberel72542582015-08-23 08:38:21 -0700115 - See also [PackageManagementTools](PackageManagementTools) for additional details.
Jason Buberel8b389db2015-08-23 10:01:04 -0700116 - Shared libraries and Go (buildmode)
Jason Buberel34c728b2015-08-26 12:17:27 -0700117 - [Go Shared Libraries](https://github.com/jbuberel/buildmodeshared) - Examples for creating and using shared libraries from Go and Python.
Jason Buberelf9bec162015-08-23 08:23:38 -0700118 - [gohttplib](https://github.com/shazow/gohttplib) - An experiment in using Go 1.5 buildmode=c-shared.
Jason Buberel8b389db2015-08-23 10:01:04 -0700119 - [Sharing Golang Packages to C](http://blog.ralch.com/tutorial/golang-sharing-libraries/) - A tutorial by [@ralch](https://twitter.com/ralch).
Jason Buberel34c728b2015-08-26 12:17:27 -0700120 - [Calling Go libraries from Python](https://blog.filippo.io/building-python-modules-with-go-1-5/) - by Filippo Valsorda
121 - [Calling Go libraries from Ruby](http://c7.se/go-and-ruby-ffi/) - by Peter Hellberg
Jason Buberel0e6e3cd2015-09-11 17:35:30 -0700122 - [Build a Ruby Gem with a Go native extension](http://blog.paracode.com/2015/08/28/ruby-and-go-sitting-in-a-tree) - by @jondot
Jason Buberelf9bec162015-08-23 08:23:38 -0700123 - See the wikis below for additional details:
Jason Buberel775f3d22015-08-21 13:34:00 -0700124 - [GoGetTools](GoGetTools)
125 - [GoGetProxyConfig](GoGetProxyConfig)
126 - [cgo](cgo)
127 - [CompilerOptimizations](CompilerOptimizations)
128 - [GccgoCrossCompilation](GccgoCrossCompilation)
129 - [GcToolchainTricks](GcToolchainTricks)
130 - [GoGenerateTools](GoGenerateTools)
Jason Buberel46369702015-08-21 13:21:29 -0700131
132## Additional Go Programming Wikis
Jason Buberelda855892015-08-22 15:15:20 -0700133
Jason Buberel6f730522015-08-22 15:18:54 -0700134 - [Why Go doesn't Support Generics: A Summary of Go Generics Discussions](https://docs.google.com/document/d/1vrAy9gMpMoS3uaVphB32uVXX4pi-HnNjkMEgyAHX4N4/preview) - Start here before you join the debate.
Jason Buberelda855892015-08-22 15:15:20 -0700135 - Concurrency
136 - [Timeouts](Timeouts) - Abandon async calls that take too long
137 - [LockOSThread](LockOSThread)
138 - [MutexOrChannel](MutexOrChannel) - When to use one vs the other
139 - [RaceDetector](RaceDetector) - How to detect and fix race conditions
Jason Buberel46369702015-08-21 13:21:29 -0700140 - Working with Databases
Jason Buberele6f90452015-08-24 06:47:16 -0700141 - [database/sql](http://go-database-sql.org/) - Online tutorial for working with the database/sql package.
Jason Buberel88fe84a2015-08-30 12:53:00 -0700142 - [TUGTBDDAwG](https://vividcortex.com/resources/building-database-driven-apps-with-go/) - Guide to building data driven apps.
Jason Buberel775f3d22015-08-21 13:34:00 -0700143 - [SQLDrivers](SQLDrivers)
144 - [SQLInterface](SQLInterface)
Jason Buberelca3d2012015-08-25 07:30:52 -0700145 - From other languages
146 - [Go for Java Programmers](https://www.nada.kth.se/~snilsson/go_for_java_programmers/)
147 - [Go for C++ Programmers](GoForCPPProgrammers)
Jason Buberel88fe84a2015-08-30 12:53:00 -0700148 - Strings
149 - [GoStrings](GoStrings)
150 - [String Matching](http://blog.gopheracademy.com/advent-2014/string-matching/)
Jason Buberel775f3d22015-08-21 13:34:00 -0700151 - [Comments](Comments)
152 - [CommonMistakes](CommonMistakes)
153 - [Errors](Errors)
154 - [GcToolchainTricks](GcToolchainTricks)
Jason Buberel775f3d22015-08-21 13:34:00 -0700155 - [Hashing](Hashing)
156 - [HttpFetch](HttpFetch)
157 - [HttpStaticFiles](HttpStaticFiles)
158 - [InterfaceSlice](InterfaceSlice)
159 - [Iota](Iota)
Jason Buberel775f3d22015-08-21 13:34:00 -0700160 - [MethodSets](MethodSets)
Jason Buberel775f3d22015-08-21 13:34:00 -0700161 - [PanicAndRecover](PanicAndRecover)
Jason Buberel775f3d22015-08-21 13:34:00 -0700162 - [Range](Range)
163 - [RateLimiting](RateLimiting)
164 - [Rationales](Rationales)
165 - [SendingMail](SendingMail)
166 - [SignalHandling](SignalHandling)
167 - [SimultaneousAssignment](SimultaneousAssignment)
168 - [SliceTricks](SliceTricks)
169 - [Switch](Switch)
170 - [TableDrivenTests](TableDrivenTests)
Jason Buberel0e6e3cd2015-09-11 17:35:30 -0700171
Jason Buberel46369702015-08-21 13:21:29 -0700172
Joe Tsai3b7561d2015-09-01 10:43:20 -0700173## Online Services that work with Go
Jason Buberel46369702015-08-21 13:21:29 -0700174
175If you're looking for services that support Go, here's a list to get you started.
176
177 - Cloud Computing - Go is well supported on most cloud service providers.
Joe Tsai3b7561d2015-09-01 10:43:20 -0700178 - [Amazon Web Services](https://github.com/aws/aws-sdk-go)
Jason Buberel46369702015-08-21 13:21:29 -0700179 - [Azure](https://github.com/Azure/azure-sdk-for-go)
180 - [Digital Ocean](https://github.com/digitalocean/godo)
Jason Buberelc51292c2015-10-03 08:17:33 -0700181 - [Google Cloud Platform for Go](https://cloud.google.com/go)
Jason Buberel46369702015-08-21 13:21:29 -0700182 - [Heroku](https://github.com/heroku/heroku-buildpack-go)
Jason Buberel3151dab2015-10-29 21:06:25 -0700183 - [IBM Bluemix](https://developer.ibm.com/bluemix/2015/10/28/getting-started-with-golang-on-bluemix/)
Jason Buberel6f9df142015-11-01 17:16:01 -0800184 - [OpenStack](https://github.com/openstack/golang-client)
Bogdan Kurnosov3344a4e2016-08-08 14:36:27 +0400185 - [Vscale](https://github.com/vscale/go-vscale)
Jason Buberel775f3d22015-08-21 13:34:00 -0700186 - See here for [information on additional providers](ProviderIntegration)
Joe Tsai1fe608f2015-09-01 10:29:48 -0700187 - [Continuous Integration and Continuous Deployment](HostedContinuousIntegration) - Go is well supported by most CI/CD frameworks
Jason Buberel46369702015-08-21 13:21:29 -0700188 - Monitoring/Logging
189 - [DeferPanic](http://deferpanic.com) - Dedicated Go application performance monitoring.
Jason Buberel37f37f52015-10-23 17:52:09 -0700190 - [OpsDash](https://www.opsdash.com/) - Go-based cluster monitoring platform.
Jason Buberel46369702015-08-21 13:21:29 -0700191 - Package and Dependency Management
192 - [Gopkg.in](http://labix.org/gopkg.in) is a source for stable Go libraries, provided by Gustavo Niemeyer.
Jason Bubereld1c6b892015-08-22 08:23:39 -0700193 - [Stable Lib](https://stablelib.com/) is a service that provides stable Go packages with long-term support.
Jason Buberel46369702015-08-21 13:21:29 -0700194
195## Troubleshooting Go Programs in Production
196
Matt Skone960bf642015-12-04 10:52:28 -0800197 - Understand the performance of your Go apps using the [pprof package](http://blog.golang.org/profiling-go-programs)
Jason Buberel46369702015-08-21 13:21:29 -0700198 - Heap Dumps
Jason Buberel775f3d22015-08-21 13:34:00 -0700199 - [heapdump13](heapdump13)
200 - [heapdump14](heapdump14)
dongfang qu2f980ae2016-09-10 10:05:43 +0800201 - [heapdump15](https://github.com/golang/go/wiki/heapdump15)
Jason Buberel46369702015-08-21 13:21:29 -0700202
203## Contributing to the Go Project
204
205 - Start by reading the [Go Contribution Guidelines](https://golang.org/doc/contribute.html)
206 - If you'd like to propose a change to the Go project, start by reading the [Go Change Proposal Process](https://github.com/golang/proposal)
Jason Buberel775f3d22015-08-21 13:34:00 -0700207 - An archive of [design documents is also available](DesignDocuments)
208 - Go releases happen on ~6 month intervals. [See here for more information](Go-Release-Cycle)
209 - Want to know more about how the [Go source sub-repositories are structured?](SubRepositories)
Jason Buberel0e6e3cd2015-09-11 17:35:30 -0700210 - The Go project requires that all code be reviewed before it is submitted.
Jason Buberel775f3d22015-08-21 13:34:00 -0700211 - Read more about our [code review practices](CodeReview)
212 - If you're commenting on code under review, please read [these guidelines](CodeReviewComments)
Jason Buberel46369702015-08-21 13:21:29 -0700213 - Issues
Joe Tsai3b7561d2015-09-01 10:43:20 -0700214 - Bug reports and feature requests should be filed using the [GitHub issue tracker](https://github.com/golang/go/issues)
Jason Buberel775f3d22015-08-21 13:34:00 -0700215 - Want to understand how we [handle issues that are reported?](HandlingIssues)
Jason Buberel46369702015-08-21 13:21:29 -0700216 - Project Dashboards
Jason Buberel775f3d22015-08-21 13:34:00 -0700217 - [Go Builds Dashboard info](DashboardBuilders)
218 - [Performance Dashboard info](PerfDashboard)
Jason Buberel46369702015-08-21 13:21:29 -0700219
220## Platform Specific Information
221
Minux Ma2d0452c2016-09-23 18:51:49 -0400222 - See [MinimumRequirements](MinimumRequirements) for minimum platform requirements of current Go ports.
Jason Buberel775f3d22015-08-21 13:34:00 -0700223 - Considering porting Go to a new platform? [Read our porting policy first](PortingPolicy)
224 - [Mobile](Mobile)
225 - [Ubuntu](Ubuntu)
Jason Buberel46369702015-08-21 13:21:29 -0700226 - Windows
Jason Buberel775f3d22015-08-21 13:34:00 -0700227 - [WindowsBuild](WindowsBuild)
228 - [WindowsCrossCompiling](WindowsCrossCompiling)
229 - [WindowsDLLs](WindowsDLLs)
230 - [WindowsSupport](WindowsSupport)
231 - [GoArm](GoArm)
232 - [ChromeOS](ChromeOS)
Mikio Hara3a581da2016-09-29 13:54:26 +0900233 - [DragonFly BSD](DragonFly BSD)
234 - [FreeBSD](FreeBSD)
235 - [NativeClient](NativeClient)
Jason Buberel775f3d22015-08-21 13:34:00 -0700236 - [NetBSD](NetBSD)
237 - [OpenBSD](OpenBSD)
Mikio Hara3a581da2016-09-29 13:54:26 +0900238 - [Solaris](Solaris)
Jason Buberel46369702015-08-21 13:21:29 -0700239
240## Release Specific Information
241
Jason Buberel775f3d22015-08-21 13:34:00 -0700242 - [Go1point1Gotchas](Go1point1Gotchas)
243 - [OlderVersions](OlderVersions)
minux27be2442014-12-11 00:03:02 -0800244
245Notes:
246
Ihor Dvoretskyie2e47d12015-11-01 09:17:08 +0200247- Please refrain from changing the title of the wiki pages, as some of them might be linked to from [golang.org](https://golang.org) or other websites.