Defining Structs in Go

Gopher Guides
Nov 4 · 1 min read

Structs in #golang are the building blocks of abstraction. In this @digitalocean introductory article, learn how to create basic structs, create structs in-line, and control what parts of your struct are exported.


Are you a company looking for Buffalo or Go training? The Gopher Guides want to help. We offer a variety of options, including In Person Training, Instructor Led Online Workshops, Consulting, and Support Contracts, and our self paced Online Video Learning.

Get your first 3 months of www.gopherguides.tv for 25% off and use the code medium. This offer is only good for a limited time, and a limited number, so act fast!

Gopher Guides

Written by

We are a Go (golang) training and consulting company. We have trained thousands of developers and are the preferred workshop vendor for many conferences.

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade