Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsInt ¶ added in v0.2.0
func PrettyPrint ¶ added in v0.2.0
func PrettyPrint(i interface{}) string
print struct json format to console
Types ¶
type ApiMessage ¶
type ApiMessage struct {
Message string `json:"message"`
Response string `json:"response"`
Data interface{} `json:"data"`
}
func ApiDefaultMsgOnly ¶
func ApiDefaultMsgOnly(message string) *ApiMessage
func ApiDefaultMsgResponse ¶
func ApiDefaultMsgResponse(data interface{}, message string) *ApiMessage
func ApiDefaultResponse ¶
func ApiDefaultResponse(data interface{}) *ApiMessage
type ErrorMessage ¶
Click to show internal directories.
Click to hide internal directories.