render

package
v0.0.0-...-57fd995 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSON

type JSON struct {
	Data any
}

func (JSON) Render

func (j JSON) Render(w http.ResponseWriter) error

func (JSON) WriteContentType

func (j JSON) WriteContentType(w http.ResponseWriter)

type Render

type Render interface {
	// Render 自定义返回信息
	Render(w http.ResponseWriter) error
	// WriteContentType 写入自定义的ContentType
	WriteContentType(w http.ResponseWriter)
}

Jump to

Keyboard shortcuts

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