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
- Host: GitHub
- URL: https://github.com/codelytv/golang-examples
- Owner: CodelyTV
- Created: 2019-01-03T10:35:33.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-04-13T13:41:40.000Z (almost 3 years ago)
- Last Synced: 2025-04-09T18:20:02.585Z (10 months ago)
- Language: Go
- Homepage: https://pro.codely.tv/library/introduccion-a-go-tu-primera-app/89042/about/
- Size: 157 KB
- Stars: 115
- Watchers: 8
- Forks: 146
- Open Issues: 20
-
Metadata Files:
- Readme: README.md
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.