response

package
v0.0.0-...-a70726a Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ok

func Ok(r *Response)

Types

type JsonResponse

type JsonResponse struct {
	Status     string      `json:"status"`
	StatusCode int         `json:"statusCode"`
	Data       interface{} `json:"data"`
}

type Response

type Response struct {
	// contains filtered or unexported fields
}

func New

func (*Response) Json

func (r *Response) Json(body interface{}) *Response

func (*Response) Status

func (r *Response) Status(status int) *Response

Jump to

Keyboard shortcuts

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