ginjson

package
v1.27.0 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Respond

func Respond(c *gin.Context, status int, data any)

Types

type JSON

type JSON struct {
	Data any
}

func (JSON) Render

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

func (JSON) WriteContentType

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

Jump to

Keyboard shortcuts

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