package
module
Version:
v0.0.8
Opens a new window with list of versions in this module.
Published: Sep 20, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 4
Opens a new window with list of known importers.
README
¶
pulsar
盘古框架Pulsar
集成,提供最简单的API
以及丰富的功能,包括
- 更友好的
API
- 序列化和反序列化
JSON
Protobuf
Msgpack
XML
- 一切皆可配置
- 多集群
感谢

Documentation
¶
func Lang(lang string) *optionLang
Lang 语言
func Localization(lang string, errs validator.ValidationErrors) (err error)
Localization 取得本地化错误信息
func New() *validator.Validate
New 创建新的验证器
func Struct(obj interface{}, opts ...option) (err error)
Struct 验证结构体
func Var(field interface{}, tag string, opts ...option) (err error)
Var 验证变量
Source Files
¶
Click to show internal directories.
Click to hide internal directories.