An open API service indexing awesome lists of open source software.

https://github.com/codelytv/golang-examples

Introductory examples to Go programming language used in the CodelyTV Pro course
https://github.com/codelytv/golang-examples

Last synced: 3 months ago
JSON representation

Introductory examples to Go programming language used in the CodelyTV Pro course

Awesome Lists containing this project

README

          

# CodelyTV and Friends of Go Present: Go Command Line Tool


Project showing up how you could implement a entire command line application with **GO**.

With this project you will be capable of implementing an application with **Go**. For this project you don't need previous experience on the language, but you do need a minimal background as a developer.

We will explain all the features that go with it including the famous `goroutines`.

## Contents

**Lesson 1.** Go Flags: introduction to "flags" package.

**Lesson 2.** Cobra: refactor from "flags" package to Cobra library.

**Lesson 3.** Reading files: retrieving beers from file.

**Lesson 4.** Modeling data: modeling our beers (structs, defined types, etc).

## Environment setup

See the environment setup instructions below.

### Requirements

To compile & run the source code of this project you just need to have [Go](https://golang.org/) properly installed.

### Installation

Binary distributions of Go are [available](https://golang.org/dl/) for Linux, macOS, Windows and more.

Otherwise you can [download](https://dl.google.com/go/go1.12.5.src.tar.gz) the source code and compile it for your platform.