xiren

package module
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2023 License: Apache-2.0 Imports: 11 Imported by: 5

README

pulsar

盘古框架Pulsar集成,提供最简单的API以及丰富的功能,包括

  • 更友好的API
  • 序列化和反序列化
    • JSON
    • Protobuf
    • Msgpack
    • XML
  • 一切皆可配置
  • 多集群

感谢

jetbrains-variant-4.png

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Lang added in v0.0.3

func Lang(lang string) *optionLang

Lang 语言

func Localization

func Localization(lang string, errs validator.ValidationErrors) (err error)

Localization 取得本地化错误信息

func New

func New() *validator.Validate

New 创建新的验证器

func Struct

func Struct(obj interface{}, opts ...option) (err error)

Struct 验证结构体

func Var

func Var(field interface{}, tag string, opts ...option) (err error)

Var 验证变量

Types

This section is empty.

Jump to

Keyboard shortcuts

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