O'Reilly logo

Go Standard Library Cookbook by Radomir Sohlich

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Introduction

This chapter is all about time-related tasks and operations. Go concentrates all these in the standard package called time. With this package, you are able to obtain the current time and date, format the date to the string, convert time zones, create timers, and create tickers. Keep in mind that there are always many ways you can implement and design functionality, and this chapter will show only a few of them.
Verify whether Go is installed properly. In case of any issues, see the Retrieving Golang version recipe in Chapter 1Interacting With the Environment, and follow the steps of the Getting ready section.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required