From the course: Learning the Go Standard Library

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Overview of the fmt package

Overview of the fmt package - Go Tutorial

From the course: Learning the Go Standard Library

Start my 1-month free trial

Overview of the fmt package

- [Instructor] The first package that we're going to look at in this course is the FMT package, which provides functions that are used for formatting strings. This is a pretty common operation in Go, as well as many other programming languages. So, if you're already familiar with using the print function in Python or the write line function from C#, for example, then this will all look familiar to you. So I have the online documentation for the FMT package here in my browser, and if I scroll down a bit, you can see that there are several formatting verbs which we will get to later in the chapter. And if I scroll back up, I'm going to click on the Index link and that will jump me down to the functions. And you can see that there are a variety of print and scan functions and we're not going to go through all of these. I'm just going to cover some of the main ones that we'll be using in the course. So, let's take a look…

Contents