controller

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2018 License: MIT, Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Sanitize

func Sanitize(s string) string

Sanitize do antixss to input

func SanitizeBytes

func SanitizeBytes(data []byte) []byte

SanitizeBytes do antixss with bytes

Types

type Response

type Response struct {
	Error ResponseError
	Data  interface{}
}

Response ...

func (*Response) SetCodeMessage

func (c *Response) SetCodeMessage(code int, message string)

SetCodeMessage ...

func (*Response) SetData

func (c *Response) SetData(_dat interface{})

SetData ...

type ResponseError

type ResponseError struct {
	Code    int
	Message string
}

ResponseError ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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