dashvalid

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package dashvalid

参数验证器工具

Parameter validator tool

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Valid

type Valid struct {
	*validator.Validate
	// contains filtered or unexported fields
}

func New

func New() *Valid

New @Editor robotyang at 2023

New 支持 string msg, err obj

@Reference https://juejin.cn/post/6847902214279659533

func (*Valid) List

func (v *Valid) List(err error) []string

List 返回 消息切片(不带分隔符)

func (*Valid) Sep

func (v *Valid) Sep(connector string) *Valid

Sep 设置 消息分隔符

func (*Valid) Str

func (v *Valid) Str(err error) string

Str 返回 消息字符串(分隔符区分)

Jump to

Keyboard shortcuts

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