github.com/duomi520/utils@v0.0.0-20240430123446-e03a4cddd6ec/validator.go (about)

     1  package utils
     2  
     3  //IValidator 接口
     4  type IValidator interface {
     5  	Var(any, string) error
     6  	Struct(any) error
     7  }