The Random Byte
  • Home
  • Cloud
  • Investment
  • Portfolio
No Result
View All Result
  • Home
  • Cloud
  • Investment
  • Portfolio
No Result
View All Result
The Random Byte
No Result
View All Result
Home Programming

Golang, from Dev to Prod

Nik by Nik
November 22, 2023
in Programming
148 8
0
gopher mascot
484
SHARES
1.6k
VIEWS
Share on FacebookShare on Twitter

Why the world needs another programming language, the buzz behind it and How the developers are nailing it right. <Add Google Background info>

Lets kick this off quickly:

https://go.dev/doc/code

Go Package == A Folder. A folder in which source files are bundled together to be compiled. Functions, variables and constants are implicitly shared with everybody in the package.

Go Module == The Mother Folder. Collection of packages (or folders) and a go.mod file at the root.

go.mod == A simple file with a path inside that serves two purpose: it becomes the “import path prefix” for all the packages (or folders) within a module, which is a string that anybody in the world will use to import your package into their code. And it also points where the go command should look to download your module.

Main Package == A special package that will auto-compile the contents within it when we run: go install or go run.

go build == does not produce an output file. It saves the compiled package into local build cache.

go tidy == if you are using an external package, this command will resolve the missing dependencies and remove any unwanted requirements. Module dependencies are downloaded on the pkag/mod path on GOPATH.

Closure:

A function returning an anonymous/inner function. Closure is an inner function that has access to all the variables in the scope where it was created. This applies even after the outer function finishes execution. Thats sounds hackish!

WaitGroups:

To wait for multiple goroutines to finish, we can use a wait group
Structs are vital in patterns that require concrete data representations, such as the Builder pattern.
Interfaces shine in patterns emphasizing behavior or interaction between objects, like the Strategy or Observer patterns.
Next Post

Bash Random bytes and Tricks

Nik

Nik

Engineer | Developer | Cloud and Automations | Lifelong builder

Next Post
terminal shell

Bash Random bytes and Tricks

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • Overloads/Congestion Control
  • AWS Multi-Region Architecture
  • A Block Storage called S3
  • DNS with Route 53 (for Hybrid Cloud)
  • Event Driven Architecture

Recent Comments

No comments to show.
April 2026
M T W T F S S
 12345
6789101112
13141516171819
20212223242526
27282930  
« Jan    

Archives

  • January 2024
  • June 2023
  • May 2022
  • February 2022

Categories

  • Automation
  • Cloud
  • Foundations
  • Programming
  • Contact
  • Investment
  • Landing
  • New Home
  • Portfolio

© 2026 JNews - Premium WordPress news & magazine theme by Jegtheme.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
No Result
View All Result
  • Contact
  • Investment
  • Landing
  • New Home
  • Portfolio

© 2026 JNews - Premium WordPress news & magazine theme by Jegtheme.