Gopher
FUNCTIONS

now

Returns the current local time

Syntax

now

See time.Time .

For example, building your site on June 24, 2017, with the following templating:

<div>
    <small>&copy; {{ now.Format "2006"}}</small>
</div>

would produce the following:

<div>
    <small>&copy; 2017</small>
</div>

The above example uses the .Format function , which page includes a full listing of date formatting using Go’s layout string.