response

package
v0.0.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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 输出内容

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL