Configuration

Night mode

Constants

A$AP Learn Go (GoLang) 🚀 Course

Engineers From These Top Companies and Universities Trust EXLskills

1M+ Professionals | 100+ Institutions

This is the EXLskills free and open-source A$AP Learn GoLang Course! It's a highly-accelerated open course that's best-suited for people with a bit of background in software engineering to quickly pick up Go, learn the essential best practices, and hit the ground running!
After this course, you'll be able to build basic Go applications in addition to lightweight webservers, highly-concurrent programs, and reusable libraries in Go that you can share with other developers!
For further practice, we recommend checking out our Go Guided Projects that will give you access to a professional Go developer, detailed documentation, and real-world tasks that you can work on to go from the basics of Go, into building production apps.

Is this course FREE?

Yes, this a 100% free course that you can contribute to on GitHub here!

Keep it Idiomatic

In Go we generally:

Use const only for values that we want to define throughout our codebase when we're coding the project -- it's not suitable for storing a configuration that you would load in via env vars, for example…

Limitations

In Go, constants must be defined at compile time -- so you must know their values prior to compilation, thusly they are not suitable for creating runtime 'constants' as some other languages offer (such as Java/JS).