misc

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2020 License: Apache-2.0, BSD-2-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ErrJson added in v0.0.2

func ErrJson(c echo.Context, code int, err error) error

func OkJson

func OkJson(c echo.Context, data interface{}) error

func OkJsonErr

func OkJsonErr(c echo.Context, err error) error

Types

type SimpleResponse

type SimpleResponse struct {
	Error string `json:"err"`
}

Jump to

Keyboard shortcuts

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