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

https://github.com/hannasdev/learning-go

A repo for stuff I created while learning go
https://github.com/hannasdev/learning-go

Last synced: about 1 year ago
JSON representation

A repo for stuff I created while learning go

Awesome Lists containing this project

README

          

# Learning Go

This is my first project as part of learning the language Go.

## Commands

| Command | Function |
| ----------------- | ---------------------------------------- |
| `go build ` | Compiles source file. |
| `go run ` | Compiles and executes go app from file. |
| `go ftm ` | Formats content of a file. |
| `go install` | Compiles and installs package. |
| `go get` | Downloads source code for a package. |
| `go test` | Runs any test associated with a package. |

## Go Types

| Type | Example |
| --------- | ----------------------------- |
| `bool` | `true` / `false` |
| `string` | `"Hello there"` |
| `int` | `123` |
| `float64` | `3.146` |
| `map` | |
| `Array` | Fixed length Array |
| `Slice` | Array that can grow or shrink |