helpers

package
v0.0.0-...-83425ee Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2019 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadConfig

func ReadConfig(path string, t interface{}) interface{}

func WriteParamsErrorData

func WriteParamsErrorData(msg string) []byte

Types

type ErrorRet

type ErrorRet struct {
	Status int         `json:"status"`
	Error  interface{} `json:"error"`
}

func NewErrorRet

func NewErrorRet(code int, msg string) *ErrorRet

type ParamsError

type ParamsError struct {
}

type SuccessRet

type SuccessRet struct {
	Status int         `json:"status"`
	Data   interface{} `json:"data"`
}

func NewSuccessRet

func NewSuccessRet(data interface{}) *SuccessRet

Jump to

Keyboard shortcuts

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