filter

package module
v0.0.0-...-00a7b0a Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

README

filter

Documentation

Overview

Package filter ...

Description : filter ...

Author : go_developer@163.com<白茶清欢>

Date : 2022-07-04 18:02

Package filter ...

Description : filter ...

Author : go_developer@163.com<白茶清欢>

Date : 2022-07-04 17:47

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFilter

func NewFilter(sourceData string, filterRuleList []MapRule) *filter

NewFilter 过滤器实例

Author : go_developer@163.com<白茶清欢>

Date : 11:54 2022/7/4

Types

type MapRule

type MapRule struct {
	SourcePath   string `json:"source_path"`   // 原路径
	MapPath      string `json:"map_path"`      // 映射路径
	Required     bool   `json:"required"`      // 必须存在
	DataType     string `json:"data_type"`     // 数据类型
	DefaultValue string `json:"default_value"` // 默认值, 以字符串传入, 会转换成 DataType
}

MapRule 映射规则

Author : go_developer@163.com<白茶清欢>

Date : 12:21 2022/7/4

Directories

Path Synopsis
Package json_tool...
Package json_tool...
gojson
Package gojson ...
Package gojson ...
Package tree ...
Package tree ...

Jump to

Keyboard shortcuts

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