base

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package base @Time : 2022/2/12 下午3:20 @Author: Jtyoui@qq.com @note : 处理一些通用的异常

Package base @Time : 2022/2/28 上午11:42 @Author: Jtyoui@qq.com @note : 将结构体上的binding绑定的错误信息全部转为中文

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParamError

func ParamError(param string, typ reflect.Type) (r reflect.Value, err error)

ParamError 根据参数判断是否异常

func TranslateError added in v1.3.0

func TranslateError(structs interface{}) (err error)

TranslateError 使用验证器验证结构体

Types

This section is empty.

Jump to

Keyboard shortcuts

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