View on GitHub

gte

Golang Template Engine. Build websites like JSP

Context

Every HTTP request to the .html file will generate a context object, which you can access by using the . symbol in the code.

The context object contains the following information:

.Config

The .Config object contains the environment and configuration information of all servers.

Field list:

.Request

The .Request object contains information about the current request.

Field list:

Method list:

.Response

The .Response object contains some operation methods of the response body

Method list