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
- Host: GitHub
- URL: https://github.com/hannasdev/learning-go
- Owner: hannasdev
- Created: 2023-04-07T10:20:39.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-08T11:38:34.000Z (about 3 years ago)
- Last Synced: 2025-05-06T18:50:15.088Z (about 1 year ago)
- Language: Go
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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 |