Skip to main content

9 docs tagged with "Go Basics"

View All Tags

Defer

In a normal Go application, control flows from the top to the bottom of any function that we call (this is if you don't use branching or looping).

Files

There are multiple packages we can utilize for reading files in a go program. We'll go over the most commonly used ones in this section.

HTTP Client and Server

The HTTP protocol is used to communicate between Client and Server. The `net/http` package provides all methods needed to implement a client and

Interfaces

In go you can define a type using a set of methods by using the `interface` keyword.

Maps

Maps are unordered key value pairs where each key is unique.

MongoDB

Make sure to use the official golang mongo driver: