errmsg

package
v2.11.0 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2021 License: LGPL-3.0 Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EmptyField

func EmptyField(field string) string

EmptyField 用于 field 的内容为空,如空字符串、长度为 0 的数组.

func InvalidValue

func InvalidValue(field string, value interface{}) string

InvalidValue 用于 field 使用了非法的值.

func MissingField

func MissingField(field string) string

MissingField 用于 field 漏传递了.

func NilField

func NilField(field string) string

NilField 用于 field 传递了空值 nil

func OutOfRange

func OutOfRange(field string, value interface{}) string

OutOfRange 用于 field 的值超出值域范围.

func TimeShouldBeEarlier

func TimeShouldBeEarlier(field string, value interface{}, compareTo interface{}) string

TimeShouldBeEarlier 用于 field 时间比较,当前 value 应当早于 compareTo.

func TimeShouldBeEarlierOrEqual

func TimeShouldBeEarlierOrEqual(field string, value interface{}, compareTo interface{}) string

TimeShouldBeEarlierOrEqual 用于 field 时间比较,当前 value 应当早于或等于 compareTo.

func TimeShouldBeLater

func TimeShouldBeLater(field string, value interface{}, compareTo interface{}) string

TimeShouldBeLater 用于 field 时间比较,当前 value 应当晚于 compareTo.

func TimeShouldBeLaterOrEqual

func TimeShouldBeLaterOrEqual(field string, value interface{}, compareTo interface{}) string

TimeShouldBeLaterOrEqual 用于 field 时间比较当前 value 应当晚于或等于 compareTo.

func ZeroField

func ZeroField(field string) string

ZeroField 用于 field 的内容为 0.

Types

This section is empty.

Jump to

Keyboard shortcuts

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