Go allows you to create web servers on your own using some of the functions of its standard library.
The name of the Go program for this example will be www.go, and it will be presented in five parts. The first part of www.go contains the expected import statements:
package main import ( "fmt" "net/http" "os" "time" )
The time package is not necessary for a web server to operate. However, it is needed in this case because the server is going to send the time and date to its clients.