gotraining

module
v0.0.0-...-38a5715 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0

README

Go Training

CircleCI

Review our different courses and material

Copyright 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, Ardan Labs
hello@ardanlabs.com

Learn More

Reach out about corporate training events, open enrollment live training sessions, and on-demand learning options.

Ardan Labs (www.ardanlabs.com)
hello@ardanlabs.com

To attend any of our high-performance tranings check out this link:
https://www.ardanlabs.com/training

Index

Purchase Video / Book

The entire training class has been recorded to be made available to those who can't have the class taught at their company or who can't attend a conference. This is the entire class material.

education.ardanlabs.com

There is a book for all of the material in the class.

Ultimate Go Notebook

Our Experience

We have taught Go to thousands of developers all around the world since 2014. There is no other company that has been doing it longer and our material has proven to help jump-start developers 6 to 12 months ahead of their knowledge of Go. We know what knowledge developers need in order to be productive and efficient when writing software in Go.

Our classes are perfect for intermediate-level developers who have at least a few months to years of experience writing code in Go. Our classes provide a very deep knowledge of the programming language with a big push on language mechanics, design philosophies and guidelines. We focus on teaching how to write code with a priority on consistency, integrity, readability and simplicity. We cover a lot about “if performance matters” with a focus on mechanical sympathy, data oriented design, decoupling and writing/debugging production software.

Our Teachers

William Kennedy (@goinggodotnet)

William Kennedy is a managing partner at Ardan Labs in Miami, Florida. Ardan Labs is a high-performance development and training firm working with startups and fortune 500 companies. He is also a co-author of the book Go in Action, the author of the blog GoingGo.Net, and a founding member of GoBridge which is working to increase Go adoption through diversity.

Video Training
Ultimate Go Video
Ardan Labs YouTube Channel

Blog
Going Go

Writing
Running MongoDB Queries Concurrently With Go
Go In Action

Articles
IT World Canada

Video
Golang Charlotte (2024) - Domain Driven, Data Oriented Architecture
GopherCon SG (2023) - K8s CPU Limits and Go
P99 Talk (2022) - Evaluating Performance In Go
GopherCon Europe (2022) - Practical Memory Profiling
Dgrpah Day (2021) - Getting Started With Dgraph and GraphQL
GDN Event #1 (2021) - GoBridge Needs Your Help
Training Within The Go Community (2019)
GopherCon Australia (2019) - Modules
Golab (2019) - You Want To Build a Web Service?
GopherCon Singapore (2019) - Garbage Collection Semantics
GopherCon India (2019) - Channel Semantics
GoWayFest Minsk (2018) - Profiling Web Apps
GopherCon Singapore (2018) - Optimizing For Correctness
GopherCon India (2018) - What is the Legacy You Are Leaving Behind
Code::Dive (2017) - Optimizing For Correctness
Code::Dive (2017) - Go: Concurrency Design
dotGo (2017) - Behavior Of Channels
GopherCon Singapore (2017) - Escape Analysis
Capital Go (2017) - Concurrency Design
GopherCon India (2017) - Package Oriented Design
GopherCon India (2015) - Go In Action
GolangUK (2016) - Dependency Management
GothamGo (2015) - Error Handling in Go
GopherCon (2014) - Building an analytics engine

Golang Charlotte (2023) - Domain Driven, Data Oriented Architecture with Bill Kennedy
Prague Meetup (2021) - Go Module Engineering Decisions
Practical Understanding Of Scheduler Semantics (2021)
Go Generics Draft Proposal (2020)
Hack Potsdam (2017) - Tech Talk with William Kennedy
Chicago Meetup (2016) - An Evening
Vancouver Meetup (2016) - Go Talk & Ask Me Anything With William Kennedy
Vancouver Meetup (2015) - Compiler Optimizations in Go
Bangalore Meetup (2015) - OOP in Go
GoSF Meetup - The Nature of Constants in Go
London Meetup - Mechanical Sympathy
Vancouver Meetup - Decoupling From Change

Podcasts
Ardan Labs Podcast: On Going Series
Mangtas Nation: A Golang Deep Dive with Bill Kennedy
Coding with Holger: Go with Bill Kennedy
Craft of Code: From Programming to Teaching Code with Bill Kennedy
GoTime: Design Philosophy
GoTime: Learning and Teaching Go
GoTime: Bill Kennedy on Mechanical Sympathy
GoTime: Discussing Imposter Syndrome
HelloTechPros: Your Tech Interviews are Scaring Away Brilliant People
HelloTechPros: The 4 Cornerstones of Writing Software

More About Go

Go is an open source programming language that makes it easy to build simple, reliable, and efficient software. Although it borrows ideas from existing languages, it has a unique and simple nature that make Go programs different in character from programs written in other languages. It balances the capabilities of a low-level systems language with some high-level features you see in modern languages today. This creates a programming environment that allows you to be incredibly productive, performant and fully in control; in Go, you can write less code and do so much more.

Go is the fusion of performance and productivity wrapped in a language that software developers can learn, use and understand. Go is not C, yet we have many of the benefits of C with the benefits of higher level programming languages.

The Ecosystem of the Go Programming Language - Henrique Vicente
The Why of Go - Carmen Andoh
Go Ten Years and Climbing - Rob Pike
The eigenvector of "Why we moved from language X to language Y" - Erik Bernhardsson
Learn More - Go Team
Simplicity is Complicated - Rob Pike
Getting Started In Go - Aarti Parikh

Minimal Qualified Student

The material has been designed to be taught in a classroom environment. The code is well commented but missing some of the contextual concepts and ideas that will be covered in class. Students with the following minimal background will get the most out of the class.

  • Studied CS in school or has a minimum of two years of experience programming full time professionally.
  • Familiar with structural and object oriented programming styles.
  • Has worked with arrays, lists, queues and stacks.
  • Understands processes, threads and synchronization at a high level.
  • Operating Systems
    • Has worked with a command shell.
    • Knows how to maneuver around the file system.
    • Understands what environment variables are.

Important Reading

Please check out this page of important reading. You will find articles and videos around mechanical sympathy, data-oriented design, Go runtime and optimizations and articles about the history of computing.

Before You Come To Class

The following is a set of tasks that can be done prior to showing up for class. We will also do this in class if anyone has not completed it. However, the more attendees that complete this ahead of time the more time we have to cover additional training material.

Prep Work

Watch This
Prepare You Mind

Reading Material
http://go.dev/
https://www.ardanlabs.com/blog/

Exercises
https://tour.golang.org/welcome/1
https://gophercises.com/

Books
https://www.manning.com/books/go-in-action
https://bitfieldconsulting.com/books/fundamentals

Joining the Go Slack Community

We use a slack channel to share links, code, and examples during the training. This is free. This is also the same slack community you will use after training to ask for help and interact with may Go experts around the world in the community.

Installing Go

Local Installation

https://www.ardanlabs.com/blog/2016/05/installing-go-and-your-workspace.html

Editors

Visual Studio Code
https://code.visualstudio.com/Updates
https://github.com/microsoft/vscode-go

VIM
http://www.vim.org/download.php
http://farazdagi.com/blog/2015/vim-as-golang-ide/

Goland
https://www.jetbrains.com/go/

Installing the Training Material

While many of the examples can be done using the online playground (http://play.golang.org), some may find it easier to complete them with their local editor. To do so, you will want to load the training material locally to your machine. From a command prompt, issue the following commands:

mkdir -p $(go env GOPATH)/src/github.com/ardanlabs && cd $_
git clone https://github.com/ardanlabs/gotraining.git

NOTE: This assumes you have Git installed. If you don’t, you can find the installation instructions here: https://git-scm.com/

Twitter

Jessie Frazelle (@frazelledazzell)
"@goinggodotnet you were amazing!!! So enthusiastic!!! Thanks for doing this for everyone!"

Kelsey Hightower (‏@kelseyhightower)
"Day 1 of the [Ultimate] Go workshop was outstanding! Big shoutout to @intel, @golangbridge, and @goinggodotnet for bringing this to Portland."

Katrina Owen (@kytrinyx)
"OH: "You thought you knew Go..." (You do Go? You want to do Go?) You should take this workshop. Seriously.) "

Ian Molee (@ianfoo) "If you're at @GopherCon, get yourself to a session with @goinggodotnet. Superb! Pretty sure his pic appears with the definition of "dynamo.""

Matt Oswalt (@Mierdin)
"Should be mentioned that though I am no expert, I have been using Go for about a year - and this meetup is kicking my ass."

Testimonials

Paul Yeoh
_"Today’s workshop was just mind blowing! You kept us all on the edge all day long - it was the most exhilarating all day workshop I have attended, period. The content was inspiring, moving - caused me to think deeply and gave me a lot of meat to chew on about what it is we are really doing as programmers, what an awesome day!

And most of all, I just got such a kick out of the energy which you were putting out - larger than life, it felt like you were turned up to 200%. I really took a lot from it at many levels. Thank you!!"_

Ana-Maria Lazar, Software Engineer at Sainsbury's
"Intensive crash course in Go that literally takes you to a whole new level. Not only Bill provides lots of examples and exercises to familiarize yourself faster with the language but there is also a lot of information that can be applied to other languages as well. Perfect combination!"

Susan Dady, Software Engineer - GE Digital
"Rarely will you come across a course as worthwhile as this one. I learned many things relevant and useful in my daily work and William's energy kept me engaged. I came back to work excited to get coding in Go."

Richard Stanley, Software Engineer - GE Digital
"Not only does Bill deeply understands the technical details of Go, he also can explain them in an effective, enthusiastic manner that helped me retain somewhat dry material. His passion for the language and its capabilities are obvious through out his training."

Shalab Goel, Ph.D.
"It was a pleasure taking this course — learning lot of "dry" stuff in such animated and enthusiastic environment. The exercises were spot on for building what you called as "memory muscle. I have good amount of background in conventional multithreaded and distributed environments, but I have not put that knowledge to use more recently; so it was good refresher from that point of view as well. From Yuck to completely Wow-ed is how I will like to describe my respect for Go within three days. I knew nothing about GO before the course."

Geoff Clitheroe (@gclitheroe)
"Your training is awesome! Myself and three colleagues recently caught variations of the training at GopherCon and OSCON. We all thought the Bootcamp was the best thing at any of these conferences (and I went to both). Awesome work to Bill for presenting and anyone involved in developing the training. I really liked the structure, emphasis on deeper understanding, me doing a small number of examples to emphasize this, and general content. Night and day to other training which is to often just watching someone else live code. Great work."

ACL Services (@ACLServices)
"I'd just like to thank you again for just a phenomenal training session. The feedback from everyone was overwhelmingly positive. You probably could tell first hand that there were skeptics at first, but you've turned many into golang converts and we are really excited in growing golang adoption internally."

Joshua Shuster (@naysaier)
"I would consider Ardan Studio's 3 day course to be invaluable. Bill and his staff, being some of the foremost authorities in the Go language, were able to make many of the complex go topics understandable. Covering everything from memory management, all the way up to building concurrency programs and web API's. It has given me the knowledge to write idiomatic Go, and make the best use of its features. I would highly their courses to anyone new to Go, or to anyone wanting to widen their existing knowledge."

Neeru Dwivedi
"I attended the one day workshop by Bill Kennedy from Ardan Labs. I was in for a surprise as before the workshop I was concerned whether I would understand concepts and whether I would be able to follow along. Bill has this wonderful way of explaining concepts and his knowledge on the concepts is so good that, I didn't feel that I was learning something new & complicated. The Go Workshop got me started on the Go language. This workshop is perfect for beginners and anyone who wants to learn more about Go. I highly recommend this."

Todd Rafferty (@webrat)
"I highly recommend William Kennedy / Ardan Lab for Go Training. William is extremely passionate about the Go language and his energy feeds into his training. Very professional, very informative. My favorite section of his training, if I had to pick, was the segment on MultiWriters. I highly recommend a 3 day course, over a 2 day course. Even after the classes were over, William was always responsive with additional questions via various social media channels."

Georgi Knox (@GeorgiCodes)
"The Intro to Go Workshop enabled me to come into class with very little knowledge of Go and leave having a firm grasp of the key concepts of the language. Each topic was followed up with hands-on coding problems which helped to solidify what I was learning. My teacher Bill was not only approachable, but very excited about the language and his enthusiasm was contagious. I enjoyed that we talked about some of the lower level implementation details of Go which was something that I had found lacking from some books on the language. Overall I would highly recommend this workshop to anyone looking to learn Go quickly and effectively."


All material is licensed under the Apache License Version 2.0, January 2004.

Directories

Path Synopsis
tools
mpl
Package main provides a CLI tool to automatically update Go Playground links within a training markdown file
Package main provides a CLI tool to automatically update Go Playground links within a training markdown file
topics
go/algorithms/data/hash
Package hash implements a hash table.
Package hash implements a hash table.
go/algorithms/data/list
Package list implements of a doubly link list in Go.
Package list implements of a doubly link list in Go.
go/algorithms/data/queue
Package queue implements of a circular queue.
Package queue implements of a circular queue.
go/algorithms/data/stack
Package stack asks the student to implement a stack in Go.
Package stack asks the student to implement a stack in Go.
go/algorithms/data/tree/binary
Package binary is an implementation of a balanced binary tree.
Package binary is an implementation of a balanced binary tree.
go/algorithms/fun/barber
Program creates customers for the simulation of the sleeping barber problem implemented in the shop package.
Program creates customers for the simulation of the sleeping barber problem implemented in the shop package.
go/algorithms/fun/barber/shop
Package shop implements the sleeping barber problem.
Package shop implements the sleeping barber problem.
go/algorithms/fun/freq
Package freq provides support for find the frequency in which a rune is found in a collection of text documents.
Package freq provides support for find the frequency in which a rune is found in a collection of text documents.
go/algorithms/fun/pubsub
This is a simple example put together to help a friend with the idea of not over-engineering a pubsub pattern.
This is a simple example put together to help a friend with the idea of not over-engineering a pubsub pattern.
go/algorithms/fun/vlq
Package vlq implements VLQ encoding/decoding.
Package vlq implements VLQ encoding/decoding.
go/algorithms/searches/binarysearch
Package binarysearch provides an example of a binary search implementation.
Package binarysearch provides an example of a binary search implementation.
go/algorithms/searches/interpolationsearch
Package interpolationsearch provides an example of an interpolation search implementation.
Package interpolationsearch provides an example of an interpolation search implementation.
go/algorithms/searches/jumpsearch
Package jumpsearch provides an example of a jump search implementation.
Package jumpsearch provides an example of a jump search implementation.
go/algorithms/searches/linearsearch
Package linearsearch provides an example of a linear search implementation.
Package linearsearch provides an example of a linear search implementation.
go/algorithms/simulations/birthday
Package main simulate the "Birthday problem".
Package main simulate the "Birthday problem".
go/algorithms/simulations/catan
Package main simulate two-sice rolls.
Package main simulate two-sice rolls.
go/algorithms/simulations/monty
Simulation of "Monty Hall problem" https://en.wikipedia.org/wiki/Monty_Hall_problem
Simulation of "Monty Hall problem" https://en.wikipedia.org/wiki/Monty_Hall_problem
go/algorithms/simulations/pi
Calculate the value of π using simulation.
Calculate the value of π using simulation.
go/algorithms/simulations/sick
Package main simulate precision of a medical test.
Package main simulate precision of a medical test.
go/algorithms/sorting/bubble
Implementation of Bubble sort in Go.
Implementation of Bubble sort in Go.
go/algorithms/sorting/heap
Package heap implement the heapsort algorithm in Go.
Package heap implement the heapsort algorithm in Go.
go/algorithms/sorting/insertion
Package insertionsort implement of Insertion Sort algorithm in Go.
Package insertionsort implement of Insertion Sort algorithm in Go.
go/algorithms/sorting/quick
Package quicksort implementation of Quick sort algorithm in Go.
Package quicksort implementation of Quick sort algorithm in Go.
go/algorithms/sorting/selection
Package selectionsort implement of Selection Sort algorithm in Go.
Package selectionsort implement of Selection Sort algorithm in Go.
go/concurrency/channels/advanced/example1
Sample program to show the order of channel communication for unbuffered, buffered and closing channels based on the specification.
Sample program to show the order of channel communication for unbuffered, buffered and closing channels based on the specification.
go/concurrency/channels/example1
This sample program demonstrates the basic channel mechanics for goroutine signaling.
This sample program demonstrates the basic channel mechanics for goroutine signaling.
go/concurrency/channels/example2
Sample program to show how to use an unbuffered channel to simulate a game of tennis between two goroutines.
Sample program to show how to use an unbuffered channel to simulate a game of tennis between two goroutines.
go/concurrency/channels/example3
Sample program to show how to use an unbuffered channel to simulate a relay race between four goroutines.
Sample program to show how to use an unbuffered channel to simulate a relay race between four goroutines.
go/concurrency/channels/example4
This sample program demonstrates how to use a buffered channel to receive results from other goroutines in a guaranteed way.
This sample program demonstrates how to use a buffered channel to receive results from other goroutines in a guaranteed way.
go/concurrency/channels/example5
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.
go/concurrency/channels/exercises/exercise1
Write a program where two goroutines pass an integer back and forth ten times.
Write a program where two goroutines pass an integer back and forth ten times.
go/concurrency/channels/exercises/exercise2
Write a program that uses a fan out pattern to generate 100 random numbers concurrently.
Write a program that uses a fan out pattern to generate 100 random numbers concurrently.
go/concurrency/channels/exercises/exercise3
Write a program that uses goroutines to generate up to 100 random numbers.
Write a program that uses goroutines to generate up to 100 random numbers.
go/concurrency/channels/exercises/exercise4
Write a program that creates a fixed set of workers to generate random numbers.
Write a program that creates a fixed set of workers to generate random numbers.
go/concurrency/channels/exercises/template1
Write a program where two goroutines pass an integer back and forth ten times.
Write a program where two goroutines pass an integer back and forth ten times.
go/concurrency/channels/exercises/template2
Write a program that uses a fan out pattern to generate 100 random numbers concurrently.
Write a program that uses a fan out pattern to generate 100 random numbers concurrently.
go/concurrency/channels/exercises/template3
Write a program that uses goroutines to generate up to 100 random numbers.
Write a program that uses goroutines to generate up to 100 random numbers.
go/concurrency/channels/exercises/template4
Write a program that creates a fixed set of workers to generate random numbers.
Write a program that creates a fixed set of workers to generate random numbers.
go/concurrency/data_race/advanced/example1
Sample program to show a more complicated race condition using an interface value.
Sample program to show a more complicated race condition using an interface value.
go/concurrency/data_race/example1
Sample program to show how to create race conditions in our programs.
Sample program to show how to create race conditions in our programs.
go/concurrency/data_race/example2
Sample program to show how to use the atomic package to provide safe access to numeric types.
Sample program to show how to use the atomic package to provide safe access to numeric types.
go/concurrency/data_race/example3
Sample program to show how to use a mutex to define critical sections of code that need synchronous access.
Sample program to show how to use a mutex to define critical sections of code that need synchronous access.
go/concurrency/data_race/example4
Sample program to show how to use a read/write mutex to define critical sections of code that needs synchronous access.
Sample program to show how to use a read/write mutex to define critical sections of code that needs synchronous access.
go/concurrency/data_race/example5
Sample program to show how maps are not safe for concurrent use by default.
Sample program to show how maps are not safe for concurrent use by default.
go/concurrency/data_race/exercises/exercise1
Answer for exercise 1 of Race Conditions.
Answer for exercise 1 of Race Conditions.
go/concurrency/data_race/exercises/template1
Fix the race condition in this program.
Fix the race condition in this program.
go/concurrency/goroutines/example1
Sample program to show how to create goroutines and how the scheduler behaves.
Sample program to show how to create goroutines and how the scheduler behaves.
go/concurrency/goroutines/example2
Sample program to show how the goroutine scheduler will time slice goroutines on a single thread.
Sample program to show how the goroutine scheduler will time slice goroutines on a single thread.
go/concurrency/goroutines/example3
Sample program to show how to create goroutines and how the goroutine scheduler behaves with two contexts.
Sample program to show how to create goroutines and how the goroutine scheduler behaves with two contexts.
go/concurrency/goroutines/exercises/exercise1
Create a program that declares two anonymous functions.
Create a program that declares two anonymous functions.
go/concurrency/goroutines/exercises/template1
Create a program that declares two anonymous functions.
Create a program that declares two anonymous functions.
go/concurrency/patterns/advanced
This sample program demonstrates how the logger package works.
This sample program demonstrates how the logger package works.
go/concurrency/patterns/chat
Package chat implements a basic chat room.
Package chat implements a basic chat room.
go/concurrency/patterns/chat/main
This sample program demonstrates how to create a simple chat system.
This sample program demonstrates how to create a simple chat system.
go/concurrency/patterns/logger
Package logger shows a pattern of using a buffer to handle log write continuity by dealing with write latencies by throwing away log data.
Package logger shows a pattern of using a buffer to handle log write continuity by dealing with write latencies by throwing away log data.
go/concurrency/patterns/logger/main
This sample program demonstrates how the logger package works.
This sample program demonstrates how the logger package works.
go/concurrency/patterns/pool
Package pool manages a user defined set of resources.
Package pool manages a user defined set of resources.
go/concurrency/patterns/pool/main
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.
go/concurrency/patterns/task
Package task provides a pool of goroutines to perform tasks.
Package task provides a pool of goroutines to perform tasks.
go/concurrency/patterns/task/main
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.
go/design/composition/assertions/example1
Sample program demonstrating when implicit interface conversions are provided by the compiler.
Sample program demonstrating when implicit interface conversions are provided by the compiler.
go/design/composition/assertions/example2
Sample program demonstrating that type assertions are a runtime and not compile time construct.
Sample program demonstrating that type assertions are a runtime and not compile time construct.
go/design/composition/assertions/example3
Sample program to show how method sets can affect behavior.
Sample program to show how method sets can affect behavior.
go/design/composition/decoupling/example1
Sample program demonstrating struct composition.
Sample program demonstrating struct composition.
go/design/composition/decoupling/example2
Sample program demonstrating decoupling with interfaces.
Sample program demonstrating decoupling with interfaces.
go/design/composition/decoupling/example3
Sample program demonstrating interface composition.
Sample program demonstrating interface composition.
go/design/composition/decoupling/example4
Sample program demonstrating decoupling with interface composition.
Sample program demonstrating decoupling with interface composition.
go/design/composition/decoupling/example5
Sample program demonstrating removing interface pollution.
Sample program demonstrating removing interface pollution.
go/design/composition/decoupling/example6
Sample program demonstrating being more precise with API design.
Sample program demonstrating being more precise with API design.
go/design/composition/exercises/exercise1
Using the template, declare a set of concrete types that implement the set of predefined interface types.
Using the template, declare a set of concrete types that implement the set of predefined interface types.
go/design/composition/grouping/example1
This is an example of using type hierarchies with a OOP pattern.
This is an example of using type hierarchies with a OOP pattern.
go/design/composition/grouping/example2
This is an example of using composition and interfaces.
This is an example of using composition and interfaces.
go/design/composition/mocking/example1
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.
go/design/composition/mocking/example1/pubsub
Package pubsub simulates a package that provides publication/subscription type services.
Package pubsub simulates a package that provides publication/subscription type services.
go/design/composition/pollution/example1
This is an example that creates interface pollution by improperly using an interface when one is not needed.
This is an example that creates interface pollution by improperly using an interface when one is not needed.
go/design/composition/pollution/example2
This is an example that removes the interface pollution by removing the interface and using the concrete type directly.
This is an example that removes the interface pollution by removing the interface and using the concrete type directly.
go/design/error_handling/example1
Sample program to show how the default error type is implemented.
Sample program to show how the default error type is implemented.
go/design/error_handling/example2
Sample program to show how to use error variables to help the caller determine the exact error being returned.
Sample program to show how to use error variables to help the caller determine the exact error being returned.
go/design/error_handling/example3
http://golang.org/src/pkg/encoding/json/decode.go Sample program to show how to implement a custom error type based on the json package in the standard library.
http://golang.org/src/pkg/encoding/json/decode.go Sample program to show how to implement a custom error type based on the json package in the standard library.
go/design/error_handling/example4
Package example4 provides code to show how to implement behavior as context.
Package example4 provides code to show how to implement behavior as context.
go/design/error_handling/example5
Sample program to show see if the class can find the bug.
Sample program to show see if the class can find the bug.
go/design/error_handling/example5/reason
Sample program to show see if the class can find the bug.
Sample program to show see if the class can find the bug.
go/design/error_handling/example6
Sample program to show how wrapping errors work with pkg/errors.
Sample program to show how wrapping errors work with pkg/errors.
go/design/error_handling/example7
Sample program to show how wrapping errors work with the stdlib.
Sample program to show how wrapping errors work with the stdlib.
go/design/error_handling/exercises/exercise1
Create two error variables, one called ErrInvalidValue and the other called ErrAmountTooLarge.
Create two error variables, one called ErrInvalidValue and the other called ErrAmountTooLarge.
go/design/error_handling/exercises/exercise2
Create a custom error type called appError that contains three fields, err error, message string and code int.
Create a custom error type called appError that contains three fields, err error, message string and code int.
go/design/error_handling/exercises/template1
Create two error variables, one called ErrInvalidValue and the other called ErrAmountTooLarge.
Create two error variables, one called ErrInvalidValue and the other called ErrAmountTooLarge.
go/design/error_handling/exercises/template2
Create a custom error type called appError that contains three fields, err error, message string and code int.
Create a custom error type called appError that contains three fields, err error, message string and code int.
go/exercises/chatbot/exercise
Write a chat bot to talk to you.
Write a chat bot to talk to you.
go/exercises/chatbot/template
Write a chat bot to talk to you.
Write a chat bot to talk to you.
go/exercises/contributors/part1
Call the GitHub API to get a list of repository contributors.
Call the GitHub API to get a list of repository contributors.
go/exercises/contributors/template
Call the GitHub API to get a list of repository contributors.
Call the GitHub API to get a list of repository contributors.
go/exercises/sha256sum/exercise
Write a program that is given a list of file names as arguments then prints the sha256 sum for the contents of each file.
Write a program that is given a list of file names as arguments then prints the sha256 sum for the contents of each file.
go/exercises/sha256sum/template
Write a program that is given a list of file names as arguments then prints the sha256 sum for the contents of each file.
Write a program that is given a list of file names as arguments then prints the sha256 sum for the contents of each file.
go/generics/08-swapping
This code provided by Sathish VJ.
This code provided by Sathish VJ.
go/language/arrays/example1
Sample program to show how to declare and iterate over arrays of different types.
Sample program to show how to declare and iterate over arrays of different types.
go/language/arrays/example2
Sample program to show how arrays of different sizes are not of the same type.
Sample program to show how arrays of different sizes are not of the same type.
go/language/arrays/example3
Sample program to show how the behavior of the for range and how memory for an array is contiguous.
Sample program to show how the behavior of the for range and how memory for an array is contiguous.
go/language/arrays/example4
Sample program to show how the for range has both value and pointer semantics.
Sample program to show how the for range has both value and pointer semantics.
go/language/arrays/exercises/exercise1
Declare an array of 5 strings with each element initialized to its zero value.
Declare an array of 5 strings with each element initialized to its zero value.
go/language/arrays/exercises/template1
Declare an array of 5 strings with each element initialized to its zero value.
Declare an array of 5 strings with each element initialized to its zero value.
go/language/constants/example1
Sample program to show how to declare constants and their implementation in Go.
Sample program to show how to declare constants and their implementation in Go.
go/language/constants/example2
Sample program to show how constants do have a parallel type system.
Sample program to show how constants do have a parallel type system.
go/language/constants/example3
Sample program to show how iota works.
Sample program to show how iota works.
go/language/constants/example4
Sample program to show how literal, constant and variables work within the scope of implicit conversion.
Sample program to show how literal, constant and variables work within the scope of implicit conversion.
go/language/constants/exercises/exercise1
Declare an untyped and typed constant and display their values.
Declare an untyped and typed constant and display their values.
go/language/constants/exercises/template1
Declare an untyped and typed constant and display their values.
Declare an untyped and typed constant and display their values.
go/language/control_flow/example1
Sample program to show how to use if statements.
Sample program to show how to use if statements.
go/language/control_flow/example2
Sample program to show how to use switch statements.
Sample program to show how to use switch statements.
go/language/control_flow/exercises/exercise1
Write a program that inspects a user's name and greets them in a certain way if they are on a list or in a different way if they are not.
Write a program that inspects a user's name and greets them in a certain way if they are on a list or in a different way if they are not.
go/language/control_flow/exercises/template1
Write a program that inspects a user's name and greets them in a certain way if they are on a list or in a different way if they are not.
Write a program that inspects a user's name and greets them in a certain way if they are on a list or in a different way if they are not.
go/language/embedding/example1
Sample program to show how what we are doing is NOT embedding a type but just using a type as a field.
Sample program to show how what we are doing is NOT embedding a type but just using a type as a field.
go/language/embedding/example2
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.
go/language/embedding/example3
Sample program to show how embedded types work with interfaces.
Sample program to show how embedded types work with interfaces.
go/language/embedding/example4
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.
go/language/embedding/exercises/exercise1
Sample program to show how you can use embedding to reuse behavior from another type and override specific methods.
Sample program to show how you can use embedding to reuse behavior from another type and override specific methods.
go/language/embedding/exercises/template1
This program defines a type Feed with two methods: Count and Fetch.
This program defines a type Feed with two methods: Count and Fetch.
go/language/exporting/example1
Sample program to show how to access an exported identifier.
Sample program to show how to access an exported identifier.
go/language/exporting/example1/counters
Package counters provides alert counter support.
Package counters provides alert counter support.
go/language/exporting/example2
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.
go/language/exporting/example2/counters
Package counters provides alert counter support.
Package counters provides alert counter support.
go/language/exporting/example3
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.
go/language/exporting/example3/counters
Package counters provides alert counter support.
Package counters provides alert counter support.
go/language/exporting/example4
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.
go/language/exporting/example4/users
Package users provides support for user management.
Package users provides support for user management.
go/language/exporting/example5
Sample program to show how to create values from exported types with embedded unexported types.
Sample program to show how to create values from exported types with embedded unexported types.
go/language/exporting/example5/users
Package users provides support for user management.
Package users provides support for user management.
go/language/exporting/exercises/exercise1
Create a package named toy with a single exported struct type named Toy.
Create a package named toy with a single exported struct type named Toy.
go/language/exporting/exercises/exercise1/toy
Package toy contains support for managing toy inventory.
Package toy contains support for managing toy inventory.
go/language/exporting/exercises/template1
Create a package named toy with a single exported struct type named Toy.
Create a package named toy with a single exported struct type named Toy.
go/language/exporting/exercises/template1/toy
Package toy contains support for managing toy inventory.
Package toy contains support for managing toy inventory.
go/language/functions/advanced/example1
Sample program to show how to recover from panics.
Sample program to show how to recover from panics.
go/language/functions/example1
Sample program to show how functions can return multiple values while using named and struct types.
Sample program to show how functions can return multiple values while using named and struct types.
go/language/functions/example2
Sample program to show how we can use the blank identifier to ignore return values.
Sample program to show how we can use the blank identifier to ignore return values.
go/language/functions/example3
Sample program to show some of the mechanics behind the short variable declaration operator redeclares.
Sample program to show some of the mechanics behind the short variable declaration operator redeclares.
go/language/functions/example4
Sample program to show how anonymous functions and closures work.
Sample program to show how anonymous functions and closures work.
go/language/functions/exercises/exercise1
Declare a struct type to maintain information about a user.
Declare a struct type to maintain information about a user.
go/language/functions/exercises/template1
Declare a struct type to maintain information about a user.
Declare a struct type to maintain information about a user.
go/language/interfaces/advanced/example1
Sample program that explores how interface assignments work when values are stored inside the interface.
Sample program that explores how interface assignments work when values are stored inside the interface.
go/language/interfaces/example0
Sample program that could benefit from polymorphic behavior with interfaces.
Sample program that could benefit from polymorphic behavior with interfaces.
go/language/interfaces/example1
Sample program to show how polymorphic behavior with interfaces.
Sample program to show how polymorphic behavior with interfaces.
go/language/interfaces/example2
Sample program to show how to understand method sets.
Sample program to show how to understand method sets.
go/language/interfaces/example3
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.
go/language/interfaces/example4
Sample program to show how the concrete value assigned to the interface is what is stored inside the interface.
Sample program to show how the concrete value assigned to the interface is what is stored inside the interface.
go/language/interfaces/example5
Sample program to show the syntax of type assertions.
Sample program to show the syntax of type assertions.
go/language/interfaces/example6
Sample program to show type assertions using the comma-ok idiom.
Sample program to show type assertions using the comma-ok idiom.
go/language/interfaces/example7
Sample program to show the syntax and mechanics of type switches and the empty interface.
Sample program to show the syntax and mechanics of type switches and the empty interface.
go/language/interfaces/exercises/exercise1
Declare an interface named speaker with a method named speak.
Declare an interface named speaker with a method named speak.
go/language/interfaces/exercises/template1
Declare an interface named speaker with a method named speak.
Declare an interface named speaker with a method named speak.
go/language/maps/example1
Sample program to show how to initialize a map, write to it, then read and delete from it.
Sample program to show how to initialize a map, write to it, then read and delete from it.
go/language/maps/example2
Sample program to show how maps behave when you read an absent key.
Sample program to show how maps behave when you read an absent key.
go/language/maps/example3
Sample program to show how only types that can have equality defined on them can be a map key.
Sample program to show how only types that can have equality defined on them can be a map key.
go/language/maps/example4
Sample program to show how to declare, initialize and iterate over a map.
Sample program to show how to declare, initialize and iterate over a map.
go/language/maps/example5
Sample program to show how to walk through a map by alphabetical key order.
Sample program to show how to walk through a map by alphabetical key order.
go/language/maps/example6
Sample program to show that you cannot take the address of an element in a map.
Sample program to show that you cannot take the address of an element in a map.
go/language/maps/example7
Sample program to show how maps are reference types.
Sample program to show how maps are reference types.
go/language/maps/exercises/exercise1
Declare and make a map of integer values with a string as the key.
Declare and make a map of integer values with a string as the key.
go/language/maps/exercises/template1
Declare and make a map of integer values with a string as the key.
Declare and make a map of integer values with a string as the key.
go/language/methods/example1
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.
go/language/methods/example2
Sample program to show how to declare methods against a named type.
Sample program to show how to declare methods against a named type.
go/language/methods/example3
Sample program to show how to declare function variables.
Sample program to show how to declare function variables.
go/language/methods/example4
Sample program to show how to declare and use function types.
Sample program to show how to declare and use function types.
go/language/methods/exercises/exercise1
Declare a struct that represents a baseball player.
Declare a struct that represents a baseball player.
go/language/methods/exercises/template1
Declare a struct that represents a baseball player.
Declare a struct that represents a baseball player.
go/language/pointers/example1
Sample program to show the basic concept of pass by value.
Sample program to show the basic concept of pass by value.
go/language/pointers/example2
Sample program to show the basic concept of using a pointer to share data.
Sample program to show the basic concept of using a pointer to share data.
go/language/pointers/example3
Sample program to show the basic concept of using a pointer to share data.
Sample program to show the basic concept of using a pointer to share data.
go/language/pointers/example4
Sample program to teach the mechanics of escape analysis.
Sample program to teach the mechanics of escape analysis.
go/language/pointers/example5
Sample program to show how stacks grow/change.
Sample program to show how stacks grow/change.
go/language/pointers/exercises/exercise1
Declare and initialize a variable of type int with the value of 20.
Declare and initialize a variable of type int with the value of 20.
go/language/pointers/exercises/exercise2
Declare a struct type and create a value of this type.
Declare a struct type and create a value of this type.
go/language/pointers/exercises/template1
Declare and initialize a variable of type int with the value of 20.
Declare and initialize a variable of type int with the value of 20.
go/language/pointers/exercises/template2
Declare a struct type and create a value of this type.
Declare a struct type and create a value of this type.
go/language/slices/advanced/example1
Sample program to show how to use a third index slice.
Sample program to show how to use a third index slice.
go/language/slices/example1
Sample program to show how the capacity of the slice is not available for use.
Sample program to show how the capacity of the slice is not available for use.
go/language/slices/example2
Sample program to show the components of a slice.
Sample program to show the components of a slice.
go/language/slices/example3
Sample program to show how to takes slices of slices to create different views of and make changes to the underlying array.
Sample program to show how to takes slices of slices to create different views of and make changes to the underlying array.
go/language/slices/example4
Sample program to show how to grow a slice using the built-in function append and how append grows the capacity of the underlying array.
Sample program to show how to grow a slice using the built-in function append and how append grows the capacity of the underlying array.
go/language/slices/example5
Sample program to show how one needs to be careful when appending to a slice when you have a reference to an element.
Sample program to show how one needs to be careful when appending to a slice when you have a reference to an element.
go/language/slices/example6
Sample program to show how strings have a UTF-8 encoded byte array.
Sample program to show how strings have a UTF-8 encoded byte array.
go/language/slices/example7
Sample program to show how to declare and use variadic functions.
Sample program to show how to declare and use variadic functions.
go/language/slices/example8
Sample program to show how the for range has both value and pointer semantics.
Sample program to show how the for range has both value and pointer semantics.
go/language/slices/example9
Sample program to show how slices allow for efficient linear traversals.
Sample program to show how slices allow for efficient linear traversals.
go/language/slices/exercises/exercise1
Declare a nil slice of integers.
Declare a nil slice of integers.
go/language/slices/exercises/template1
Declare a nil slice of integers.
Declare a nil slice of integers.
go/language/struct_types/advanced/example1
Sample program to show how struct types align on boundaries.
Sample program to show how struct types align on boundaries.
go/language/struct_types/example1
Sample program to show how to declare and initialize struct types.
Sample program to show how to declare and initialize struct types.
go/language/struct_types/example2
Sample program to show how to declare and initialize anonymous struct types.
Sample program to show how to declare and initialize anonymous struct types.
go/language/struct_types/example3
Sample program to show how variables of an unnamed type can be assigned to variables of a named type, when they are identical.
Sample program to show how variables of an unnamed type can be assigned to variables of a named type, when they are identical.
go/language/struct_types/exercises/exercise1
Declare a struct type to maintain information about a user (name, email and age).
Declare a struct type to maintain information about a user (name, email and age).
go/language/struct_types/exercises/template1
Declare a struct type to maintain information about a user (name, email and age).
Declare a struct type to maintain information about a user (name, email and age).
go/language/variables/example1
Sample program to show how to declare variables.
Sample program to show how to declare variables.
go/language/variables/exercises/exercise1
Declare three variables that are initialized to their zero value and three declared with a literal value.
Declare three variables that are initialized to their zero value and three declared with a literal value.
go/language/variables/exercises/template1
Declare three variables that are initialized to their zero value and three declared with a literal value.
Declare three variables that are initialized to their zero value and three declared with a literal value.
go/packages/context/example1
Sample program to show how to store and retrieve values from a context.
Sample program to show how to store and retrieve values from a context.
go/packages/context/example2
Sample program to show how to use the WithCancel function.
Sample program to show how to use the WithCancel function.
go/packages/context/example3
Sample program to show how to use the WithDeadline function.
Sample program to show how to use the WithDeadline function.
go/packages/context/example4
Sample program to show how to use the WithTimeout function of the Context package.
Sample program to show how to use the WithTimeout function of the Context package.
go/packages/context/example5
Sample program that implements a web request with a context that is used to timeout the request if it takes too long.
Sample program that implements a web request with a context that is used to timeout the request if it takes too long.
go/packages/context/example6
Sample program to show when a Context is canceled, all Contexts derived from it are also canceled.
Sample program to show when a Context is canceled, all Contexts derived from it are also canceled.
go/packages/context/exercises/exercise1
Sample program that implements a simple web service using the context to handle timeouts and pass context into the request.
Sample program that implements a simple web service using the context to handle timeouts and pass context into the request.
go/packages/encoding/example1
Sample program to show how to unmarshal a JSON document into a user defined struct type.
Sample program to show how to unmarshal a JSON document into a user defined struct type.
go/packages/encoding/example2
Sample program to show how to unmarshal a JSON document into a user defined struct type from a file.
Sample program to show how to unmarshal a JSON document into a user defined struct type from a file.
go/packages/encoding/example3
Sample program to show how to marshal a user defined struct type into a string.
Sample program to show how to marshal a user defined struct type into a string.
go/packages/encoding/example4
Sample program to show how write a custom Unmarshal and Marshal functions.
Sample program to show how write a custom Unmarshal and Marshal functions.
go/packages/encoding/exercises/exercise1
Create a file with an array of JSON documents that contain a user name and email address.
Create a file with an array of JSON documents that contain a user name and email address.
go/packages/encoding/exercises/template1
Create a file with an array of JSON documents that contain a user name and email address.
Create a file with an array of JSON documents that contain a user name and email address.
go/packages/io/advanced/example1
Sample program to show how io.Writes can be embedded within other Writer calls to perform complex writes.
Sample program to show how io.Writes can be embedded within other Writer calls to perform complex writes.
go/packages/io/advanced/example2
Sample program that adds a few more features.
Sample program that adds a few more features.
go/packages/io/example1
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.
go/packages/io/example2
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.
go/packages/io/example3
Sample program to show how to use a MultiWriter to perform writes to multiple devices with one write call.
Sample program to show how to use a MultiWriter to perform writes to multiple devices with one write call.
go/packages/io/example4
Sample program that takes a stream of bytes and looks for the bytes “elvis” and when they are found, replace them with “Elvis”.
Sample program that takes a stream of bytes and looks for the bytes “elvis” and when they are found, replace them with “Elvis”.
go/packages/io/exercises/exercise1
Download any document from the web and display the content in the terminal and write it to a file at the same time.
Download any document from the web and display the content in the terminal and write it to a file at the same time.
go/packages/io/exercises/template1
Download any document from the web and display the content in the terminal and write it to a file at the same time.
Download any document from the web and display the content in the terminal and write it to a file at the same time.
go/packages/logging/example1
Sample program to show how to use the log package from the standard library.
Sample program to show how to use the log package from the standard library.
go/packages/logging/example2
Sample program to show how to extend the log package from the standard library.
Sample program to show how to extend the log package from the standard library.
go/packages/logging/exercises/exercise1
Setup a new program to use the log package.
Setup a new program to use the log package.
go/packages/logging/exercises/template1
Setup a new program to use the log package.
Setup a new program to use the log package.
go/packages/reflection/exercises/exercise1
Declare a struct type that represents a request for a customer invoice.
Declare a struct type that represents a request for a customer invoice.
go/packages/reflection/exercises/template1
Declare a struct type that represents a request for a customer invoice.
Declare a struct type that represents a request for a customer invoice.
go/packages/reflection/inspect/integer
Example shows how to use reflection to decode an integer.
Example shows how to use reflection to decode an integer.
go/packages/reflection/inspect/struct
Example shows how to inspect a structs fields and display the field name, type and value.
Example shows how to inspect a structs fields and display the field name, type and value.
go/packages/reflection/interface/map
Example shows how to reflect over a map of struct type values that are stored inside an interface value.
Example shows how to reflect over a map of struct type values that are stored inside an interface value.
go/packages/reflection/interface/pointer
Example shows how to reflect over a struct type pointer that is stored inside an interface value.
Example shows how to reflect over a struct type pointer that is stored inside an interface value.
go/packages/reflection/interface/slice
Example shows how to reflect over a slice of struct type values that are stored inside an interface value.
Example shows how to reflect over a slice of struct type values that are stored inside an interface value.
go/packages/reflection/interface/struct
Example shows how to reflect over a struct type value that is stored inside an interface value.
Example shows how to reflect over a struct type value that is stored inside an interface value.
go/packages/reflection/tag
Example shows how to reflect on a struct type with tags.
Example shows how to reflect on a struct type with tags.
go/packages/slices/example1
Sample program shows how to use the BinarySearch APIs from the slices package.
Sample program shows how to use the BinarySearch APIs from the slices package.
go/packages/slices/example10
Sample program shows how to use the Index API from the slices package.
Sample program shows how to use the Index API from the slices package.
go/packages/slices/example11
Sample program shows how to use the Insert API from the slices package.
Sample program shows how to use the Insert API from the slices package.
go/packages/slices/example12
Sample program shows how to use the Sort APIs from the slices package.
Sample program shows how to use the Sort APIs from the slices package.
go/packages/slices/example13
Sample program shows how to use the Replace API from the slices package.
Sample program shows how to use the Replace API from the slices package.
go/packages/slices/example2
Sample program shows how to use the Clip API from the slices package.
Sample program shows how to use the Clip API from the slices package.
go/packages/slices/example3
Sample program shows how to use the Clone API from the slices package.
Sample program shows how to use the Clone API from the slices package.
go/packages/slices/example4
Sample program shows how to use the Compact APIs from the slices package.
Sample program shows how to use the Compact APIs from the slices package.
go/packages/slices/example5
Sample program shows how to use the Compare API from the slices package.
Sample program shows how to use the Compare API from the slices package.
go/packages/slices/example6
Sample program shows how to use the Contains API from the slices package.
Sample program shows how to use the Contains API from the slices package.
go/packages/slices/example7
Sample program shows how to use the Delete API from the slices package.
Sample program shows how to use the Delete API from the slices package.
go/packages/slices/example8
Sample program shows how to use the Equal API from the slices package.
Sample program shows how to use the Equal API from the slices package.
go/packages/slices/example9
Sample program shows how to use the Grow API from the slices package.
Sample program shows how to use the Grow API from the slices package.
go/profiling/bce
Package bce shows a sample function that does not take into consideration the extra bounds checks that the compiler places in code for integrity.
Package bce shows a sample function that does not take into consideration the extra bounds checks that the compiler places in code for integrity.
go/profiling/blocking
Sample program to see what a trace will look like for basic channel latencies.
Sample program to see what a trace will look like for basic channel latencies.
go/profiling/godebug
Sample program that implements a simple web service that will allow us to explore how to use the GODEBUG variable.
Sample program that implements a simple web service that will allow us to explore how to use the GODEBUG variable.
go/profiling/http_trace/example1
Sample program to show how the httptrace package provides a number of hooks to gather information during an HTTP round trip about a variety of events.
Sample program to show how the httptrace package provides a number of hooks to gather information during an HTTP round trip about a variety of events.
go/profiling/http_trace/example2
Sample program to show how to use the http trace with a unique Client and Transport.
Sample program to show how to use the http trace with a unique Client and Transport.
go/profiling/memcpu
Sample program that takes a stream of bytes and looks for the bytes “elvis” and when they are found, replace them with “Elvis”.
Sample program that takes a stream of bytes and looks for the bytes “elvis” and when they are found, replace them with “Elvis”.
go/profiling/pprof
Sample program that implements a simple web service that will allow us to explore how to use the http/pprof tooling.
Sample program that implements a simple web service that will allow us to explore how to use the http/pprof tooling.
go/profiling/project
This program provides a sample web service that uses concurrency and channels to perform a coordinated set of asynchronous searches.
This program provides a sample web service that uses concurrency and channels to perform a coordinated set of asynchronous searches.
go/profiling/project/search
Package search manages the searching of results against different news feeds.
Package search manages the searching of results against different news feeds.
go/profiling/project/service
Package service maintains the logic for the web service.
Package service maintains the logic for the web service.
go/profiling/stack_trace/example1
Sample program to show how to read a stack trace.
Sample program to show how to read a stack trace.
go/profiling/stack_trace/example2
Sample program to show how to read a stack trace when it packs values.
Sample program to show how to read a stack trace when it packs values.
go/profiling/stack_trace/example3
Sample program that implements a simple web service that will allow us to explore how to look at core dumps.
Sample program that implements a simple web service that will allow us to explore how to look at core dumps.
go/profiling/trace
Sample program that performs a series of I/O related tasks to better understand tracing in Go.
Sample program that performs a series of I/O related tasks to better understand tracing in Go.
go/testing/benchmarks/caching
Package caching provides code to show why Data Oriented Design matters.
Package caching provides code to show why Data Oriented Design matters.
go/testing/benchmarks/cpu-bound
Understanding your workload is critically important in understanding if something can be made concurrent and how complex it is to perform.
Understanding your workload is critically important in understanding if something can be made concurrent and how complex it is to perform.
go/testing/benchmarks/io-bound
Understanding your workload is critically important in understanding if something can be made concurrent and how complex it is to perform.
Understanding your workload is critically important in understanding if something can be made concurrent and how complex it is to perform.
go/testing/fuzzing/example1
Package api provides an example on how to use go-fuzz.
Package api provides an example on how to use go-fuzz.
go/testing/fuzzing/exercises/exercise1
Package fuzzprot provides the ability to unpack user values from our binary protocol.
Package fuzzprot provides the ability to unpack user values from our binary protocol.
go/testing/strings
Package strings provides some useful string manipulation functions.
Package strings provides some useful string manipulation functions.
go/testing/strings/example1
Package strings provides some useful string manipulation functions.
Package strings provides some useful string manipulation functions.
go/testing/strings/example2
Package strings provides some useful string manipulation functions.
Package strings provides some useful string manipulation functions.
go/testing/strings/example3
Package strings provides some useful string manipulation functions.
Package strings provides some useful string manipulation functions.
go/testing/strings/example4
Package strings provides some useful string manipulation functions.
Package strings provides some useful string manipulation functions.
go/testing/tests/example4
Sample program that implements a simple web service.
Sample program that implements a simple web service.
go/testing/tests/example4/handlers
Package handlers provides the endpoints for the web service.
Package handlers provides the endpoints for the web service.
go/videos/miki/shorts/expandenv
Use os.ExpandEnv to expand environment variables in a string.
Use os.ExpandEnv to expand environment variables in a string.
go/videos/miki/shorts/fmt_loc
fmt.Printf can access arguments by location.
fmt.Printf can access arguments by location.
go/videos/miki/shorts/fold
Use strings.EqualFold for Unicode aware case insensitive comparison.
Use strings.EqualFold for Unicode aware case insensitive comparison.
Dummy DB package
go/videos/miki/shorts/url_query
Use url.URL to change URLs.
Use url.URL to change URLs.

Jump to

Keyboard shortcuts

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