Documentation ¶ Index ¶ type Driver func (d *Driver) Display(filenames ...string) func (d *Driver) Header(name string, value string) func (d *Driver) Init(rw http.ResponseWriter) func (d *Driver) Json() func (d *Driver) Set(name string, value any) func (d *Driver) Write(content string) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Driver ¶ type Driver struct { http.ResponseWriter // contains filtered or unexported fields } func (*Driver) Display ¶ func (d *Driver) Display(filenames ...string) Display 显示模板 func (*Driver) Header ¶ func (d *Driver) Header(name string, value string) Header 输出头你息 func (*Driver) Init ¶ func (d *Driver) Init(rw http.ResponseWriter) Init 初始化 func (*Driver) Json ¶ func (d *Driver) Json() Json 输出JSON func (*Driver) Set ¶ func (d *Driver) Set(name string, value any) Set 设置数据 func (*Driver) Write ¶ func (d *Driver) Write(content string) Write 输出内容 Source Files ¶ View all Source files driver.go Click to show internal directories. Click to hide internal directories.