DEV Community

Cover image for Learning Golang • #Issue1
Ekemini Samuel
Ekemini Samuel

Posted on • Updated on

Learning Golang • #Issue1

The journey has begun! I started a course on Codecademy Learn Go. 😃
I'll be learning how to use Golang, an open-source programming language that's supported by Google!

Summary of what I’ve learnt so far:

In Golang, Values could be numbers ( 215) or text (“Hello earth”)
These values can then be written into code.

Variables and Constants are examples of Named values while Literal values are examples of Unnamed values.

Constants cannot be updated while the program is running, but the value of a Variable can be updated.

A keyword is used to create a Constant, then a value is assigned to the constant using a Literal. The constant’s name can be used throughout the rest of the program instead of the literal.
In Go, spaces aren’t allowed when naming constants.
Either camelCase or PascalCase formats are used; capitalizing each subsequent word instead of adding spaces.

In coding, using descriptive names are important...it makes us able to read and understand the code we write.

That’s a summary of what I have learnt so far.
...documenting my learning journey! 🌟

Constants are examples of named variables in Go; a keyword is used to create a constant. Constants cannot be updated while the program is running.

Top comments (0)