tag:blogger.com,1999:blog-84790256336268899052024-03-13T13:37:21.691-07:00Golang4UsTips to get started learn the Go programming languageUnknownnoreply@blogger.comBlogger20125tag:blogger.com,1999:blog-8479025633626889905.post-88469542520685684732021-03-02T06:00:00.000-08:002021-03-02T06:00:00.195-08:00Pointers in Go
Understand all about declaring and using pointers in Go
If you're coming from Python, Java, JavaScript, C# and others, talking
pointers may scare you. But fear not! Go's approach to pointers is very
elegant and definitely very easy to understand.
Variables
We cannot talk pointers without understanding variables.
Every variable you declare in Go (or any programming languageUnknownnoreply@blogger.comtag:blogger.com,1999:blog-8479025633626889905.post-78625001274665212012021-02-02T06:00:00.059-08:002021-02-02T06:00:02.373-08:00Raw String Literals in Go
Learn what are Raw String Literals in Go and how to use them
On a previous posts we discussed Runes, Variables and Strings in Go. Today,
let's continue our study of Go Strings by learning about raw string literals.
Raw String Literals
Raw string literals are character sequences between back quotes, as in
`foo`. Within raw string literals,
no escape sequences are processedUnknownnoreply@blogger.comtag:blogger.com,1999:blog-8479025633626889905.post-63966231215064385872021-01-26T06:00:00.123-08:002021-01-26T06:00:00.258-08:00Strings in Go
Learn the most important aspects of Strings in Go
On a previous posts we discussed Runes and Variables. Today, let's continue
our study of Go's basic types by learning more about Strings in Go. Since
Strings in Go as not as obvious as in your favorite programming language, we
recommend to explore this article at your own pace.
Declaring Strings in Go
You probably know how Unknownnoreply@blogger.comtag:blogger.com,1999:blog-8479025633626889905.post-91363026746121863832021-01-19T06:00:00.035-08:002021-01-25T08:53:10.169-08:00Runes in Go
Understand what's a rune in Go and when to use it
If you are new to Go, you probably saw the word rune being used. But would you
be able to precise what it is?
Runes in Go
A rune in Go is essentially a
synonym to the type int32 which by
convention is set to an Unicode code point. A code point is a numerical value that can represent single characters but can also have otherUnknownnoreply@blogger.comtag:blogger.com,1999:blog-8479025633626889905.post-91319798737010467062021-01-12T06:00:00.002-08:002021-01-25T07:20:42.265-08:00Declaring Types in Go
Learn how to declare your own types in Go.
We recently reviewed both the
standard way to declare variables, and tuple assignments. Let's extend on those concepts and learn how to declare our own types in Go.
Types in Go
A type in Go is a declaration that defines a new named type that we can use in
our programs and follows this pattern:
type name underlying-type
Declaring Unknownnoreply@blogger.comtag:blogger.com,1999:blog-8479025633626889905.post-19222256108469786222021-01-05T06:00:00.078-08:002021-01-25T07:20:33.411-08:00Tuple Assignments in Go
Learn about tuple assignments in Go and how to use it.
Apart from the
standard way to declare variables, Go offers another way known as tuple assignment. Tuple assignments
allow declaring (and assigning) several variables at the same time with the
caveat that the expressions on the right are evaluated before any of the
variables are updated.
Since tuple assignments Unknownnoreply@blogger.comtag:blogger.com,1999:blog-8479025633626889905.post-80241926372020682102020-12-29T06:00:00.034-08:002021-01-25T07:20:24.557-08:00Go Operators
Want to know more about operators in Go? Read to understand.
If you come from JavaScript, Java, C, C# or Python you will feel at home with
Go operators. On this article we will provide a summary of the operators in Go
and provide some examples.
What are operators?
But what are operators? Operators are constructs which behave generally like
functions, but which differ Unknownnoreply@blogger.comtag:blogger.com,1999:blog-8479025633626889905.post-14427913368242624772020-12-22T06:00:00.009-08:002021-01-25T07:39:23.023-08:00The new function in Go
Know everything about the new function in Go, especially when and how to use it.
Apart from the
standard way to declare variables, Go offers another way to declare variables via the built-in function
new function. Its format is:
myVar := new(myType)
Can you guess what's the type for
myVar on the example above? If you
guessed *myType, you got it right:
the new Unknownnoreply@blogger.comtag:blogger.com,1999:blog-8479025633626889905.post-90500872138740485262020-12-15T06:00:00.024-08:002021-01-25T07:17:05.864-08:00Escape Sequences in Go
Want to know more about escape sequences in Go? Read to understand.
Go as other programming languages has the concept of escaping. A escaping sequence is a combination of characters that has a meaning other than the literal characters contained therein. An escaping sequence commonly uses a escape character which in Go is the \ character. Let's understand more about escaping in
Go'sUnknownnoreply@blogger.comtag:blogger.com,1999:blog-8479025633626889905.post-75388982155452337672020-12-08T06:00:00.003-08:002021-01-25T07:36:24.009-08:00Go Reserved Keywords
Go is not a big language but would you be able to list all of its reserved keywords?
On a recent post we reviewed the main keywords on a Go program. On that article we discussed that some of the reasons to use Go are that it's easy to learn and scales so well is due to its simplicity. In fact, the
language is so small that it may be very simple for a new user of the language
Unknownnoreply@blogger.comtag:blogger.com,1999:blog-8479025633626889905.post-39162407184332883202020-12-01T06:00:00.075-08:002021-01-25T07:19:59.826-08:00Constants in GoWant to know more about constants in Go? Read to understand
On a previous post we discussed variables in Go. We also learned what zero values are. Today we will focus on understanding what are constants in Go and
how to use them.
What is a constant?
Almost every programming language has the concept of constants. Constants are
variables that hold immutable values, values that Unknownnoreply@blogger.comtag:blogger.com,1999:blog-8479025633626889905.post-25676079676597553162020-11-23T06:00:00.003-08:002020-12-21T14:41:21.561-08:00Zero Values in Go
Would you be able to define what is a Zero Value in Go?
On a previous article we discussed all about variables. However, declaring
variables is just one piece of the equation. Since go does not have nulls,
would you be able to tell what value each primitive type is assigned?
If you though zero values then you're right. But would you be able
to tell how to Unknownnoreply@blogger.comtag:blogger.com,1999:blog-8479025633626889905.post-27872352246858582792020-11-16T06:00:00.006-08:002020-11-26T14:59:18.260-08:00Variables in Go
Understand all about declaring and using variables in Go
Once you understand the
main reasons to use Go, installed Go on your
Windows,
Linux
or
Mac, and built your first
program in Go, it's time to dive into the details of the language. While most developers
are familiar to these concepts, Go approaches that in different ways that are
worth exploring.
Built-in typesUnknownnoreply@blogger.comtag:blogger.com,1999:blog-8479025633626889905.post-91924170936454518472020-11-09T12:23:00.004-08:002020-11-24T14:07:44.042-08:00The main keywords in a Go program
Learning Go? Understand the main keywords you'll need to write Go programs
Once you understand the
main reasons to use Go, installed Go on your
Windows,
Linux
or
Mac, and built your first
program in Go, it's time to dive into the details of the language. On this tutorial we
will continue studying
our first program in Go
to understand some of the important concepts Unknownnoreply@blogger.comtag:blogger.com,1999:blog-8479025633626889905.post-28921811671548156342020-11-02T06:00:00.005-08:002020-11-09T12:26:31.231-08:00Your first program in Go
Beginning in Go? Learn how write your first program in this fantastic programming language
Once you installed Go on your Windows, Linux or Mac and understand why you should use Go, let's build our first Go program, shall we?
What's a Hello World program
Writing a simple Hello World program is the traditional way to learn a new programming language. It
consists Unknownnoreply@blogger.comtag:blogger.com,1999:blog-8479025633626889905.post-40401402817339752292020-10-30T06:00:00.003-07:002020-11-09T12:26:22.087-08:00How to Install Go on Linux
Installing Go in Linux is very simple! Learn how in this tutorial
So you're
ready to learn Go and
need some help installing it on Linux? Sure, let's get started! On this
tutorial let's learn how to install Go on Ubuntu (and other deb-based
systems), Fedora (and RPM-based systems), Arch and by hand.
Installing Go in Linux is simpler than on Windows and Macs since it's Unknownnoreply@blogger.comtag:blogger.com,1999:blog-8479025633626889905.post-27663573074555884832020-10-28T06:00:00.025-07:002020-11-09T12:26:16.755-08:00How to Install Go on MacOS
Installing Go in MacOS is very simple! Learn how in this tutorial
So you're
ready to learn Go and
need some help installing it on Windows? Sure, let's get started! On this
tutorial let's learn how to install it on Windows.
Downloading Go for MacOS
Installing Go on Windows is actually very simple. Open
Go's download page and
download the MacOS installer. Since Go's Unknownnoreply@blogger.comtag:blogger.com,1999:blog-8479025633626889905.post-70603362569863353332020-10-26T06:00:00.005-07:002020-11-09T12:26:11.912-08:00How to install Go on Windows
Installing Go in Windows is very simple! Learn how in this tutorial
So you're
ready to learn Go and
need some help installing it on Windows? Sure, let's get started! On this
tutorial let's learn how to install it on Windows.
Downloading Go for Windows
Installing Go on Windows is actually very simple. Open
Go's download page and
download the Windows installer. Since Unknownnoreply@blogger.comtag:blogger.com,1999:blog-8479025633626889905.post-804143798020152642020-10-15T15:06:00.006-07:002020-11-09T12:26:03.521-08:00Why learn Go?With so many languages available, why one should learn Go? Check our 21 favorite reasons
Learning a new programming language can be tricky, fun and exhausting. With so
many options available in the market today, why should one learn Go? Let's review 21 reasons
to learn this fantastic programming language.
Go is Free
You don't need to invest anything to start writing code in Unknownnoreply@blogger.comtag:blogger.com,1999:blog-8479025633626889905.post-69097120290247647132020-09-16T21:29:00.010-07:002020-10-30T14:33:01.938-07:00Hello WorldHello world, hello from Golang4Us.
Photo by
Mohamed Nohassi
on Unsplash
Writing a simple
Hello World
program is the traditional way to learn a new programming language. It
consists essentially in writing as little code as possible to print the "Hello
World" sentence on the screen. In its Unknownnoreply@blogger.com