Documentation
      ¶
    
    
  
    
  
    Index ¶
- Constants
 - Variables
 - func Decode(dst interface{}, data map[string]string) error
 - func Encode(data interface{}) []interface{}
 - func EncodeEle(data interface{}) bool
 - func Find(ctx context.Context, redisClient redis.Cmdable, dst interface{}, key string, ...) error
 - func GetTagByField(field reflect.StructField, fieldTag string) string
 - func Storge(ctx context.Context, redisClient redis.Cmdable, key string, ...) error
 - type StructValue
 
Constants ¶
      View Source
      
  
const (
	TagName = "json"
)
    Variables ¶
      View Source
      
  
    var ( ErrParam = errors.New("参数不正确") ErrNotFound = errors.New("查询结果为0") )
      View Source
      
  
var (
	Nil = []byte("null")
)
    Functions ¶
func GetTagByField ¶
func GetTagByField(field reflect.StructField, fieldTag string) string
Types ¶
type StructValue ¶
type StructValue struct {
	// contains filtered or unexported fields
}
    func Struct ¶
func Struct(dst interface{}) (StructValue, error)
     Click to show internal directories. 
   Click to hide internal directories.