utils

package
v0.0.0-...-e19c9e5 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Ok                  = 200
	Redirect            = 301
	NotFound            = 404
	InternalServerError = 505
)

Variables

This section is empty.

Functions

This section is empty.

Types

type JsonFormat

type JsonFormat struct {
	Code    int
	Message string
	Data    interface{}
}

func (*JsonFormat) Error

func (json *JsonFormat) Error(interface{}) JsonFormat

func (*JsonFormat) Ok

func (json *JsonFormat) Ok(data interface{}) JsonFormat

Jump to

Keyboard shortcuts

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