helper

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ActionFuncMap = make(map[string]func(*http.Request) ([]byte, error), 0)
)

Functions

func DD

func DD(o ...interface{})

func Err

func Err(msg ...interface{})

func FromUTF8

func FromUTF8(to string, s []byte) ([]byte, error)

FromUTF8 convert from UTF-8 encoding to CJK encoding

func Inf

func Inf(msg ...interface{})

func PPP

func PPP(msg ...interface{})

func RegisterHandler

func RegisterHandler(h interface{})

func ToUTF8

func ToUTF8(from string, s []byte) ([]byte, error)

ToUTF8 convert from CJK encoding to UTF-8

func Wrn

func Wrn(msg ...interface{})

Types

type ROUTER

type ROUTER struct{}

func (ROUTER) CrossHeader

func (ROUTER) CrossHeader(w http.ResponseWriter)

func (ROUTER) ServeHTTP

func (ROUTER) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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