httpResponse

package
v2.0.5 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EntityMessage

type EntityMessage struct {
	Code   string      `json:"code"`
	ErrMsg string      `json:"error_msg,omitempty"`
	Body   interface{} `json:"body,omitempty"`
}

func Empty

func Empty() *EntityMessage

func Error

func Error(code string, err error) *EntityMessage

func Success

func Success(body interface{}) *EntityMessage

Jump to

Keyboard shortcuts

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