
Go Panic and Recover with Defer Explained
Go panic and recover let a program deal with errors that are too serious for a normal return value. In this post, you will…
Tag

Go panic and recover let a program deal with errors that are too serious for a normal return value. In this post, you will…

Go closures are functions that remember the variables around them, even after the outer function has finished. In this post, you will write anonymous…

Go strings hold text, such as a user’s name or even a full web page. In this post, you will learn how text is…

Go database access starts with the database/sql package, which ships with the standard library. In this post, you will open a connection, create a…

A Go REST API lets other apps create, read and delete your data over HTTP using JSON. In this post, you will build a…

A Go HTTP server can run with just a few lines of code. That is because the standard library already includes a fast, production-ready…

Go file handling lets your program save data to disk and read it back, from simple notes to large log files. In this post,…

Go JSON handling lets your program turn structs into text and read that text back into structs. In this post, you will learn Marshal,…

Go unit testing is built right into the language, so you can check your code without installing any extra tools. In this post, you…

Go generics let you write one function or type that works with many data types, without copying code. In this post, you will learn…