render

package
v0.0.1-beta.4 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

!

  • rest-api-framework
  • Copyright(c) 2019 Roshan Gade
  • MIT Licensed

!

  • rest-api-framework
  • Copyright(c) 2019 Roshan Gade
  • MIT Licensed

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidJson = errors.New("INVALID_JSON_RESPONSE")
)

Functions

This section is empty.

Types

type JSON

type JSON struct {
	Body interface{}
}

TODO: JSONP

func (JSON) Write

func (j JSON) Write(w http.ResponseWriter) (data []byte, err error)

*

  • JSON Write

type Text

type Text struct {
	Body string
}

func (Text) Write

func (j Text) Write(w http.ResponseWriter) (data []byte, err error)

*

  • Text Write

Jump to

Keyboard shortcuts

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