utils

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsDebug

func IsDebug() bool

IsDebug check debug mode

func ShowInfomation

func ShowInfomation(name string, info ...interface{})

ShowInfomation show defail information

Types

type ErrorResponse

type ErrorResponse struct {
	StatusCode int    `json:"-" xml:"-"`
	Request    string `json:"request" xml:"request"`
	ErrorMsg   string `json:"error" xml:"error"`
}

ErrorResponse error response

func (*ErrorResponse) Error

func (e *ErrorResponse) Error() string

func (*ErrorResponse) GetErrorMsg

func (e *ErrorResponse) GetErrorMsg() string

GetErrorMsg get ErrorMsg from ErrorResponse

func (*ErrorResponse) GetRequest

func (e *ErrorResponse) GetRequest() string

GetRequest get Request from ErrorResponse

func (*ErrorResponse) GetStatusCode

func (e *ErrorResponse) GetStatusCode() int

GetStatusCode get StatusCode from ErrorResponse

Jump to

Keyboard shortcuts

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