Golang Todolist app
Source: Full Golang Tutorial - Learn Go by Building a TodoList App with TWN
Why use Golang
Section titled “Why use Golang”Go also known as Golang was Created by Google in 2007 and open source in 2009
Why use Go? Purpose? and Different from other languages?
Section titled “Why use Go? Purpose? and Different from other languages?”Background:
- Infrastructure changes in multicore process, cloud infrastructure, and clustering. Providing scale, dynamic infrastructure and capacity.
- Applications could be written to do multiple tasks at once. For example, cloud drive managers and video websites allowing multiple tasks going for users
- Challenges of multithreading
- Modifying the same data source
- Concurrency - conflict management of resources
Use Case of Go
Section titled “Use Case of Go”It is good for applications that need to perform well and run on scaled, distributed systems.
Go was designed to run on multiple cores and concurrent applications. It works well for server side and back-end software, for example docker, HashiCorp Vault, Kubernetes, Cockroach DB, and command line applications.
Characteristics and Use Cases
Section titled “Characteristics and Use Cases”Go tries to combine simple and readable syntax like Python with efficiency and safety of a statically type language like C++.
Programs usually have fast build, start up and run time and require less computer resources. It compiles to a binary that can run on different operating systems.
Setting up a Development environment
Section titled “Setting up a Development environment”For an integrated development environment, can use GoLand from JetBrains with project management, compilation, completion, and other features.
Install the Go compiler. If using GoLand, selecting the SDK version will automatically install it.
To run source in GoLand, press the run button or use terminal.
Concepts and Syntax
Section titled “Concepts and Syntax”For syntax and go commands for building and running programs, see
Golang Snippets - Golang
Snippets
Packages are a set of source files available for reuse for application functionality. They can be browsed at pkg.go.dev.
Use the net/http import, HTTP functionality can be added to the
application.