Home
About
  • Learning Golang: Strings

    Sep 8, 2020 golang

    This is part 13 of my journey learning Golang. Strings in Go Strings represent a sequence of bytes. More specifically, a read-only slice of uint8 integers. Their main use is for representing text. This text is usually, but not necessarily, encoded as UTF-8. In Go, strings can also be used to represent text in any …

    Read More
  • Learning Golang: Compilation Errors

    Sep 7, 2020 golang

    This is part 12 of my journey learning Golang. Compile-time errors Go is a compiled language. That means that it will parse the source code and produce an executable binary file from it. The compiler parses the code according to strictly defined rules. That allows Go programs to run more efficiently than if they were …

    Read More
  • Learning Golang: Variables

    Sep 6, 2020 golang

    This is part 11 of my journey learning Golang. Variables A variable is a named value that can change during the execution of a program. The difference from a constant (which is also a named value) is that a variable’s value can be modified at run time. Variable declarations In Go, variables are declared following …

    Read More
  • Learning Golang: Literals and Constants

    Sep 6, 2020 golang

    This is part 10 of my journey learning Golang. Literals In Go, values can be many things. Just to name a few, values can be numbers (like 109), or text wrapped in quotes (like “Hello world”). Literals are values written in the source code. For example: 1fmt.Println("Hello, world!") // String literal …

    Read More
  • Learning Golang: Basic data types

    Aug 26, 2020 golang

    This is part 9 of my journey learning Golang. Data types are a designation by a programming language about the kind of values that are being stored. Go has several basic data types built in. This article explores boolean, numeric and string data types. See Go’s documentation for more details. Boolean data type …

    Read More
  • Learning Golang: Running Go in a container

    Aug 22, 2020 golang

    This is part 8 of my journey learning Golang. Reproducible build & run environments Over the years, it is not uncommon that different projects in the same language will have different requirements about the versions of the tools and libraries that they require. For instance, I learned that there are differences in …

    Read More
  • Learning Golang: Multiline strings

    Aug 21, 2020 golang

    This is part 7 of my journey learning Golang. My first assignment on Codecademy’s Learn Go course was to create a program that prints out ASCII art. The way that’s different from a “Hello, World” program is that it needs to print multiple lines. So it was a great opportunity to learn about how …

    Read More
  • Learning Golang: Resources for learning Go

    Aug 19, 2020 golang

    This is part 6 of my journey learning Golang. Books and tutorials A Tour of Go: An introduction that covers the most important features of the language. An Introduction to Programming in Go: A free e-book from 2012. For the Love of Go: Fundamentals: An interactive introduction to the Go programming language, suitable …

    Read More
  • Learning Golang: Comments

    Aug 18, 2020 golang

    This is part 5 of my journey learning Golang. Inline comments Go ignores text to the right of //: 1// This entire line is ignored by the compiler. 2// fmt.Println("Does NOT print") 3fmt.Println("This gets printed!") // This part gets ignored Block comments All lines between /* and */ will be ignored: …

    Read More
  • Learning Golang: Function declarations

    Aug 16, 2020 golang

    This is part 4 of my journey learning Golang. Function declarations Functions are reusable blocks of code. For example: 1func main () { 2 fmt.Println("Hello, World!") 3} The func keyword declares a function. It is followed by the function’s name, a list of arguments (delimited by parenthesis) and the …

    Read More
    • ««
    • «
    • 1
    • 2
    • 3
    • »
    • »»

Fernando Correia

Principal Software Engineer at Domino Data Lab. We're hiring!

Read More

Featured Posts

Recent Posts

  • My origin story: TK85
  • Learning Golang: Random numbers
  • Learning Golang: Scoped shorthand variable declaration
  • Learning Golang: switch
  • Learning Golang: Logical operators
  • Learning Golang: if and else
  • Learning Golang: Scan, Scanln and Scanf
  • Learning Golang: Sprint, Sprintln, Sprintf

categories

LEARNING-GOLANG 23 PERSONAL 1

tags

GOLANG 23 BLOGGING 3 DNS 1 GITHUB-PAGES 1 ORIGIN 1

Copyright ©  Fernando de Alcantara Correia. Licensed under the Creative Commons Attribution 4.0 International (CC BY 4.0) License.