blob: 4382d5101e963806805517a0cc188519f7f624ed [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 Buberel46369702015-08-21 13:21:29 -07003Table of Contents
4=================
adg87f483a2014-12-09 16:42:53 -08005
Jason Buberel46369702015-08-21 13:21:29 -07006+ [Getting started with Go](#getting-started-with-go)
7+ [Working with Go](#working-with-go)
8+ [Learning more about Go](#learning-more-about-go)
9+ [The Go Community](#the-go-community)
10+ [Using the go toolchain](#using-the-go-toolchain)
11+ [Additional Go Programming Wikis](#additional-go-programming-wikis)
Jacob Hayese244fd12015-09-24 17:55:52 -050012+ [Online Services that work with Go](#online-services-that-work-with-go)
Jason Buberel46369702015-08-21 13:21:29 -070013+ [Troubleshooting Go Programs in Production](#troubleshooting-go-programs-in-production)
14+ [Contributing to the Go Project](#contributing-to-the-go-project)
15+ [Platform Specific Information](#platform-specific-information)
16+ [Release Specific Information](#release-specific-information)
adg87f483a2014-12-09 16:42:53 -080017
adg87f483a2014-12-09 16:42:53 -080018
Jason Buberel46369702015-08-21 13:21:29 -070019## Getting started with Go
20
21 - [The Go Tour](http://tour.golang.org) is the best place to start.
22 - [Effective Go](https://golang.org/doc/effective_go.html) will help you learn how to write idiomatic Go code.
23 - [Go standard library documentation](https://golang.org/pkg/) to familiarize yourself with the standard library.
24 - [Use the Go Playground](http://play.golang.org) to test out Go programs in your browser.
Jason Buberel7e6cbc32015-08-30 08:32:46 -070025 - 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 -070026
27## Working with Go
28
29Ready to write some Go code of your own? Here are a few links to help you get started.
30
31 - Install and Setup your Environment
32 - Start here: [Official Installation Documentation](https://golang.org/doc/install)
Jason Buberel0e6e3cd2015-09-11 17:35:30 -070033 - If you prefer to install from source, [read this first](https://golang.org/doc/install/source).
Jason Buberel775f3d22015-08-21 13:34:00 -070034 - [InstallFromSource](InstallFromSource) - Additional tips on source installs.
Jason Buberel0e6e3cd2015-09-11 17:35:30 -070035 - 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 -070036 - 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 -070037 - Having installation problems? [InstallTroubleShooting](InstallTroubleShooting)
Jason Buberel46369702015-08-21 13:21:29 -070038 - Make sure you have your [$GOPATH environment variable set correctly](https://golang.org/doc/install/source#gopath)
Jason Buberel775f3d22015-08-21 13:34:00 -070039 - If you need additional tips on using [$GOPATH, go here](GOPATH).
40 - [MultipleGoRoots](MultipleGoRoots) - More advanced information on working with multiple go installations and the `$GOROOT` variable.
41 - [Go IDEs and Editors](IDEsAndTextEditorPlugins) - Information on how to use your favorite editor with Go.
Jason Buberel042985a2015-09-12 14:14:00 -070042 - [Tools for working with Go code](CodeTools) - Formatting, linting, vetting, refactoring, navigation and visualization.
Jason Buberel945d31c2015-10-03 08:54:20 -070043 - Finding Go Libraries and Packages
Jason Bubereld18c5ad2015-09-02 08:49:51 -070044 - Start here: [Go open source projects](Projects).
45 - Search for Go packages: [godoc.org](http://godoc.org)
Jason Buberel945d31c2015-10-03 08:54:20 -070046 - Visualization of the [Go open source package graph](https://anvaka.github.io/pm/#/galaxy/gosearch?l=1)
Jason Buberel7e6cbc32015-08-30 08:32:46 -070047 - [Managing your dependencies](PackageManagementTools) - An overview of the tools you can use to manage the libraries that your application depends on.
Jason Buberel46369702015-08-21 13:21:29 -070048 - Publishing Go Packages as Open Source
Jason Buberel775f3d22015-08-21 13:34:00 -070049 - Getting ready to publish your package? [Start here.](PackagePublishing)
Jason Buberel016aaf82015-08-23 15:51:34 -070050 - [The Go Checklist](https://github.com/matttproud/gochecklist) - A comprehensive guide for publishing a project.
Jason Buberel775f3d22015-08-21 13:34:00 -070051 - [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 -070052 - [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 -070053
54## Learning more about Go
55
Jason Buberelcc8e0f02015-08-29 08:40:48 -070056Once you have an overview of the language, here are resources you can use to learn more.
Jason Buberel46369702015-08-21 13:21:29 -070057
Jason Buberel6c3bd9e2015-08-23 11:04:43 -070058 - [Learning Go](Learn) - A collection of resources for learning Go - beginner to advanced.
Jason Buberelcc333832015-09-01 17:51:56 -070059 - [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 -070060 - [Server programming](LearnServerProgramming) - Building web, mobile, and API servers.
Jason Buberel6c3bd9e2015-08-23 11:04:43 -070061 - [More on concurrency](LearnConcurrency)
Guillaume Laforgecb00bf32015-08-24 06:11:38 +020062 - [More on error handling](LearnErrorHandling)
Jason Buberel6c3bd9e2015-08-23 11:04:43 -070063 - [More on testing](LearnTesting)
Jason Buberel22f71b62015-08-29 15:10:51 -070064 - [More on mobile - Android and iOS](Mobile)
Jason Buberelbfc0f3f2015-08-23 11:06:00 -070065 - [Books](Books) - A list of Go books that have been published (ebook, paper)
Jason Buberel4ef62682015-09-05 14:05:06 -070066 - [Blogs](Blogs) - Blogs about Go
67 - [Podcasts](Podcasts) - Podcasts and episodes featuring Go
Jason Buberel46369702015-08-21 13:21:29 -070068 - Videos, Talks and Presentations
Jason Buberelf7f7d182015-08-21 16:44:01 -070069 - [GopherVids](http://gophervids.appspot.com/) is a searchable index of videos about Go.
Jason Buberel775f3d22015-08-21 13:34:00 -070070 - [GoTalks](GoTalks) - A collection of talks from Go conferences and meetups.
71 - [Screencasts](Screencasts)
Jason Buberelbfc0f3f2015-08-23 11:06:00 -070072 - [Articles](Articles) - A collection of articles to help you learn more about Go.
Jason Buberel8ccafcd2015-08-28 10:52:53 -070073 - [Training](Training) - Free and commercial, online and classroom training for Go.
Jason Buberel7e6cbc32015-08-30 08:32:46 -070074 - [University Courses](Courses) - A list of CS programs and classes using Go.
Jason Buberel775f3d22015-08-21 13:34:00 -070075 - [Resources for non-English speakers](NonEnglish)
Jason Buberel46369702015-08-21 13:21:29 -070076
77## The Go Community
78
Jason Buberel016aaf82015-08-23 15:51:34 -070079Here 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 -070080
Jason Buberelb67fb582015-09-28 09:02:38 -070081
82- Where Gophers hangout online:
83 - [The Go Forum](https://forum.golangbridge.org/) - An all-purpose discussion forum for the Go community.
84 - [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 +010085 - [Golang News](http://golangnews.com) - For curated links about Go Programming.
Jason Buberelb67fb582015-09-28 09:02:38 -070086 - There is also a [/r/golang](http://reddit.com/r/golang) sub-reddit.
87 - 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.
88 - 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 -070089- Mailing Lists
90 - 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 -070091 - 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 -070092 - 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 -070093 - To get just our release announcements, join [golang-announce](https://groups.google.com/forum/#!forum/golang-announce)
Jason Buberel46369702015-08-21 13:21:29 -070094- 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)
Jason Buberel30377742015-09-19 10:28:53 -070095 - [Women Who Go](http://www.womenwhogo.org/)
Jason Buberel775f3d22015-08-21 13:34:00 -070096 - See here for [additional information GoUserGroups](GoUserGroups)
Jason Buberel0f8396c2015-08-22 12:59:19 -070097- [Conferences](Conferences) - A list of upcoming and past Go conferences and major events.
Jason Buberel7893d432015-08-22 15:32:19 -070098- A comprehensive list of companies using Go: [Go Users](GoUsers)
Jason Buberel7e6cbc32015-08-30 08:32:46 -070099- Learn more about the [Go Gopher images](Gopher) by Renee French.
Jason Buberel46369702015-08-21 13:21:29 -0700100
101## Using the go toolchain
102
103 - Start with the standard documentation for the `go` command [available here](https://golang.org/cmd/go/)
Jason Buberelf9bec162015-08-23 08:23:38 -0700104 - Using the Go 1.5 `GO15VENDOREXPERIMENT`
105 - Start here for the [official documentation](https://golang.org/cmd/go/#hdr-Vendor_Directories).
106 - [Overview with examples](http://icanhazdowntime.org/post/2015-07-09-go-vendor-experiment/) by [@freeformz](https://twitter.com/freeformz).
Jason Buberel72542582015-08-23 08:38:21 -0700107 - See also [PackageManagementTools](PackageManagementTools) for additional details.
Jason Buberel8b389db2015-08-23 10:01:04 -0700108 - Shared libraries and Go (buildmode)
Jason Buberel34c728b2015-08-26 12:17:27 -0700109 - [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 -0700110 - [gohttplib](https://github.com/shazow/gohttplib) - An experiment in using Go 1.5 buildmode=c-shared.
Jason Buberel8b389db2015-08-23 10:01:04 -0700111 - [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 -0700112 - [Calling Go libraries from Python](https://blog.filippo.io/building-python-modules-with-go-1-5/) - by Filippo Valsorda
113 - [Calling Go libraries from Ruby](http://c7.se/go-and-ruby-ffi/) - by Peter Hellberg
Jason Buberel0e6e3cd2015-09-11 17:35:30 -0700114 - [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 -0700115 - See the wikis below for additional details:
Jason Buberel775f3d22015-08-21 13:34:00 -0700116 - [GoGetTools](GoGetTools)
117 - [GoGetProxyConfig](GoGetProxyConfig)
118 - [cgo](cgo)
119 - [CompilerOptimizations](CompilerOptimizations)
120 - [GccgoCrossCompilation](GccgoCrossCompilation)
121 - [GcToolchainTricks](GcToolchainTricks)
122 - [GoGenerateTools](GoGenerateTools)
Jason Buberel46369702015-08-21 13:21:29 -0700123
124## Additional Go Programming Wikis
Jason Buberelda855892015-08-22 15:15:20 -0700125
Jason Buberel6f730522015-08-22 15:18:54 -0700126 - [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 -0700127 - Concurrency
128 - [Timeouts](Timeouts) - Abandon async calls that take too long
129 - [LockOSThread](LockOSThread)
130 - [MutexOrChannel](MutexOrChannel) - When to use one vs the other
131 - [RaceDetector](RaceDetector) - How to detect and fix race conditions
Jason Buberel46369702015-08-21 13:21:29 -0700132 - Working with Databases
Jason Buberele6f90452015-08-24 06:47:16 -0700133 - [database/sql](http://go-database-sql.org/) - Online tutorial for working with the database/sql package.
Jason Buberel88fe84a2015-08-30 12:53:00 -0700134 - [TUGTBDDAwG](https://vividcortex.com/resources/building-database-driven-apps-with-go/) - Guide to building data driven apps.
Jason Buberel775f3d22015-08-21 13:34:00 -0700135 - [SQLDrivers](SQLDrivers)
136 - [SQLInterface](SQLInterface)
Jason Buberelca3d2012015-08-25 07:30:52 -0700137 - From other languages
138 - [Go for Java Programmers](https://www.nada.kth.se/~snilsson/go_for_java_programmers/)
139 - [Go for C++ Programmers](GoForCPPProgrammers)
Jason Buberel88fe84a2015-08-30 12:53:00 -0700140 - Strings
141 - [GoStrings](GoStrings)
142 - [String Matching](http://blog.gopheracademy.com/advent-2014/string-matching/)
Jason Buberel775f3d22015-08-21 13:34:00 -0700143 - [Comments](Comments)
144 - [CommonMistakes](CommonMistakes)
145 - [Errors](Errors)
146 - [GcToolchainTricks](GcToolchainTricks)
Jason Buberel775f3d22015-08-21 13:34:00 -0700147 - [Hashing](Hashing)
148 - [HttpFetch](HttpFetch)
149 - [HttpStaticFiles](HttpStaticFiles)
150 - [InterfaceSlice](InterfaceSlice)
151 - [Iota](Iota)
Jason Buberel775f3d22015-08-21 13:34:00 -0700152 - [MethodSets](MethodSets)
Jason Buberel775f3d22015-08-21 13:34:00 -0700153 - [PanicAndRecover](PanicAndRecover)
Jason Buberel775f3d22015-08-21 13:34:00 -0700154 - [Range](Range)
155 - [RateLimiting](RateLimiting)
156 - [Rationales](Rationales)
157 - [SendingMail](SendingMail)
158 - [SignalHandling](SignalHandling)
159 - [SimultaneousAssignment](SimultaneousAssignment)
160 - [SliceTricks](SliceTricks)
161 - [Switch](Switch)
162 - [TableDrivenTests](TableDrivenTests)
Jason Buberel0e6e3cd2015-09-11 17:35:30 -0700163
Jason Buberel46369702015-08-21 13:21:29 -0700164
Joe Tsai3b7561d2015-09-01 10:43:20 -0700165## Online Services that work with Go
Jason Buberel46369702015-08-21 13:21:29 -0700166
167If you're looking for services that support Go, here's a list to get you started.
168
169 - Cloud Computing - Go is well supported on most cloud service providers.
Joe Tsai3b7561d2015-09-01 10:43:20 -0700170 - [Amazon Web Services](https://github.com/aws/aws-sdk-go)
Jason Buberel46369702015-08-21 13:21:29 -0700171 - [Azure](https://github.com/Azure/azure-sdk-for-go)
172 - [Digital Ocean](https://github.com/digitalocean/godo)
Jason Buberelc51292c2015-10-03 08:17:33 -0700173 - [Google Cloud Platform for Go](https://cloud.google.com/go)
Jason Buberel46369702015-08-21 13:21:29 -0700174 - [Heroku](https://github.com/heroku/heroku-buildpack-go)
Jason Buberel775f3d22015-08-21 13:34:00 -0700175 - See here for [information on additional providers](ProviderIntegration)
Joe Tsai1fe608f2015-09-01 10:29:48 -0700176 - [Continuous Integration and Continuous Deployment](HostedContinuousIntegration) - Go is well supported by most CI/CD frameworks
Jason Buberel46369702015-08-21 13:21:29 -0700177 - Monitoring/Logging
178 - [DeferPanic](http://deferpanic.com) - Dedicated Go application performance monitoring.
179 - Package and Dependency Management
180 - [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 -0700181 - [Stable Lib](https://stablelib.com/) is a service that provides stable Go packages with long-term support.
Jason Buberel46369702015-08-21 13:21:29 -0700182
183## Troubleshooting Go Programs in Production
184
185 - Understand the performance of you Go apps using the [pprof package](http://blog.golang.org/profiling-go-programs)
186 - Heap Dumps
Jason Buberel775f3d22015-08-21 13:34:00 -0700187 - [heapdump13](heapdump13)
188 - [heapdump14](heapdump14)
Jason Buberel46369702015-08-21 13:21:29 -0700189
190## Contributing to the Go Project
191
192 - Start by reading the [Go Contribution Guidelines](https://golang.org/doc/contribute.html)
193 - 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 -0700194 - An archive of [design documents is also available](DesignDocuments)
195 - Go releases happen on ~6 month intervals. [See here for more information](Go-Release-Cycle)
196 - Want to know more about how the [Go source sub-repositories are structured?](SubRepositories)
Jason Buberel0e6e3cd2015-09-11 17:35:30 -0700197 - The Go project requires that all code be reviewed before it is submitted.
Jason Buberel775f3d22015-08-21 13:34:00 -0700198 - Read more about our [code review practices](CodeReview)
199 - If you're commenting on code under review, please read [these guidelines](CodeReviewComments)
Jason Buberel46369702015-08-21 13:21:29 -0700200 - Issues
Joe Tsai3b7561d2015-09-01 10:43:20 -0700201 - 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 -0700202 - Want to understand how we [handle issues that are reported?](HandlingIssues)
Jason Buberel46369702015-08-21 13:21:29 -0700203 - Project Dashboards
Jason Buberel775f3d22015-08-21 13:34:00 -0700204 - [Go Builds Dashboard info](DashboardBuilders)
205 - [Performance Dashboard info](PerfDashboard)
Jason Buberel46369702015-08-21 13:21:29 -0700206
207## Platform Specific Information
208
Jason Buberel775f3d22015-08-21 13:34:00 -0700209 - Considering porting Go to a new platform? [Read our porting policy first](PortingPolicy)
210 - [Mobile](Mobile)
211 - [Ubuntu](Ubuntu)
Jason Buberel46369702015-08-21 13:21:29 -0700212 - Windows
Jason Buberel775f3d22015-08-21 13:34:00 -0700213 - [WindowsBuild](WindowsBuild)
214 - [WindowsCrossCompiling](WindowsCrossCompiling)
215 - [WindowsDLLs](WindowsDLLs)
216 - [WindowsSupport](WindowsSupport)
217 - [GoArm](GoArm)
218 - [ChromeOS](ChromeOS)
219 - [NetBSD](NetBSD)
220 - [OpenBSD](OpenBSD)
221 - [FreeBSD](FreeBSD)
222 - [NativeClient](NativeClient)
Jason Buberel46369702015-08-21 13:21:29 -0700223
224## Release Specific Information
225
Jason Buberel775f3d22015-08-21 13:34:00 -0700226 - [Go1point1Gotchas](Go1point1Gotchas)
227 - [OlderVersions](OlderVersions)
minux27be2442014-12-11 00:03:02 -0800228
229Notes:
230
Jason Buberel0e6e3cd2015-09-11 17:35:30 -0700231- 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.