learngo

module
v0.0.0-...-177a8f4 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2020 License: Apache-2.0

README

LearnGo

What is this?

The LearnGo project includes various Go basics as well as some patterns and examples.

Image of Gopher

Ceveats

When I started to explore Go, I wanted to have something to refer back to and have some examples I can use. I would keep finding things on the web, but soon forgot about them and had to find them again. As a result, I started to just compile various examples I found useful. I figured I'd share some of these examples in hopes that they could be useful to someone. However, take them with a grain of salt since I'm by no means a Go expert and still feel very much like a newb.

Sections

Basic modules

Basics includes basic Go examples. It starts with the most basic things like variables and goes deeper including below learning modules. Each module includes various examples.

Patterns

This includes various patterns and examples of common things and how to solve them in Go.

Running Locally

To run these examples locally, just clone them in your GOPATH using: git clone https://github.com/vcollak/learnGo

Directories

Path Synopsis
Patterns
1.4_docker/1.0_simpleGolang
Hello world app that can be built as a docker container
Hello world app that can be built as a docker container
basics
1.4_arrays/1.simple
In Go, an _array_ is a numbered sequence of elements of a specific length.
In Go, an _array_ is a numbered sequence of elements of a specific length.
Packages
2.6_errors/9.errorPackage/apperrors
Package apperrors handes application errors
Package apperrors handes application errors
2.8_packages/4.multiplePackages/cat
by convention, use the same name of the package as thr folder name that contains it
by convention, use the same name of the package as thr folder name that contains it
german greet
3.2_interface/10.dependencyInjection/fancyprinter
Package fancyprinter implements a printer interface
Package fancyprinter implements a printer interface

Jump to

Keyboard shortcuts

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