package
1.3.48
Repository: https://github.com/sandwich-go/boost.git
Documentation: pkg.go.dev

# README

xtag

sturct tag 辅助函数

  • 校验 sturct tag 是否符合要求

例子

fmt.Println(ValidateStructTag("a:1"))

Output:

bad syntax for struct tag value

# Functions

ValidateStructTag parses the struct tag and returns an error if it is not in the canonical format, which is a space-separated list of key:"value" settings.