February 2018
Intermediate to advanced
340 pages
9h 43m
English
The Time type of the time package provides the Format method for formatting the output string.
Go uses the referential time value Jan 2 15:04:05 2006 MST to define the formatting layout. See the code example for padding options.
The time package includes some predefined formats (for example, time.Kitchen); you can discover these in the documentation for package constants. (https://golang.org/pkg/time/#pkg-constants)
Read now
Unlock full access