While working on boot.dev’s Go Playground, I came across a very strange error. The standard library’s fmt.
Users love convenience. If your goal is to make it easy for users to register with your app or website, then implementing the “Sign in with Google” option should be at the top of your priority list.
Rust and Go are two of the industry’s biggest successes when it comes to developing modern programming languages.
We just launched the new boot.dev computer science platform and can’t be more excited. Our first crash course in Go, “Learn Go” is now available!
If you are familiar with the Go Playground, then you know how convenient it is to be able to have a Go scratchpad in the browser.
There are quite a few ways to create new maps and slices in Go, for example, they can both be initialized using the make() function, the new() function, as literals, or by using the var keyword.
Python is commonly seen as the AI/ML language, but is often a dull blade due to unsafe typing and being slow, like really slow.
In applications that are i/o heavy, it can get clunky to synchronously execute high-latency functions one after the other.
Sorting is a common task in programming, and for that reason, most languages have a default sorting algorithm in their standard library.
Go is strongly typed, and with that, we get many options for simple variable types like integers and floats.
One of the primary goals of the Go programming language is to make concurrency simpler, faster, and more efficient.
Go and Rust are two of the hottest compiled programming languages, but which is more popular, Go or Rust?
The Go standard library has a really cool type - Ticker. Tickers are used when you want to do something at a regular interval, similar to JavaScript’s setInterval.
In microservice architectures, it’s fairly common to have a project that includes different worker types. A Makefile can be used to manage the creation of multiple programs, but the Go toolchain has a tool that can be used as well, go generate.
An anonymous struct is just like a normal struct, but it is defined without a name and therefore cannot be referenced elsewhere in the code.
time.Time is the perfect choice for handling times in Go in most cases, it even comes in the standard library!
Go is a strongly typed language, which means at any point a developer should know exactly what type of value they are dealing with.
I’ve often seen, and have been responsible for, throwing code into packages without much thought. I’ve quickly drawn a line in the sand and started putting code into different folders (which in Go are different packages by definition) just for the sake of findability.
time.Time makes dealing with dates and times in Go a breeze, and it even comes bundled in the standard library!
Golang is King when it comes to concurrency. No other language has so many tools right out of the box, and one of those tools is the standard library’s sync.
Interfaces in Go allow us to treat different types as the same data type temporarily because both types implement the same kind of behavior.
Errors in Go are a hot topic. Many newcomers to the language immediately level their first criticism, “errors in go are clunky!
Go is becoming very popular for backend web development, and JWT’s are one of the most popular ways to handle authentication on API requests.
I’m going to focus mostly on some design decisions and also how I went about writing an SPI interface using Go on a Raspberry Pi.
Let’s discuss a few rules of thumb for logging in Go, as well as some features you may not have heard of that can make debugging easier.