#Golang-Basic
29 articles
Getting to Know Structs and Interfaces in Golang
Although it is possible for us to write programs using only Go’s built-in data types, at some point it will become very tedious. Consider a program that interacts with a form like the code below.
Getting to know Data Types in Golang
##Numbers
Integers
There are integer types that we can use, including uint8
, uint16
, uint32
, uint64
, int8
, int16
, int32
and int64
. The following is an example of using integer type variables in the go program:
How to Debug Golang in VSCode
Maybe you have seen applications that are live
with errors
or the application stops in the middle of the process we are running. Of course, this is uncomfortable because we have to repeat the process from the beginning. Processes that suddenly stop are usually called bugs
. Bug itself is an error that occurs as a result of an error that occurs due to an instruction or process being executed imperfectly. The causes of bugs are many factors, perhaps the manufacturing process is not perfect, or when running a process that requires something, for example resources and that need cannot be met, a bug
will arise.
How to Setup Development Go in Visual Studio Code
Since becoming acquainted with Open Source Visual Studio Code, since then Santekno has been working on a project or in other words ‘coding’ using the Visual Studio Code (VSCode) IDE. Besides being light when used, there are also many additional features (plugins) that can support us in coding.
How to Install Golang on Windows, Macbook and Linux Computers
First download the Golang library on the [Golang] website (https://golang.org/doc/install).