gin

package
v0.0.0-...-a2ce4e4 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteJSON

func WriteJSON(w http.ResponseWriter, obj interface{}) error

WriteJSON marshals the given interface object and writes it with custom ContentType.

Types

type ProtoJson

type ProtoJson struct {
	Data interface{}
}

func (ProtoJson) Render

func (p ProtoJson) Render(w http.ResponseWriter) error

func (ProtoJson) WriteContentType

func (p ProtoJson) WriteContentType(w http.ResponseWriter)

type Server

type Server struct {
	*gin.Engine
}

func NewServer

func NewServer() *Server

Jump to

Keyboard shortcuts

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