render

package
v0.0.1-beta.9 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2019 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 JSON

type JSON struct {
	Body interface{}
}

TODO: JSONP

func (JSON) ToBytes

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

Parse json data and product bytes

type Text

type Text struct {
	Body string
}

func (Text) ToBytes

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

Parse text/string into bytes

Jump to

Keyboard shortcuts

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