mapper

package
v0.0.1-draft Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataMapper

type DataMapper struct {
	// contains filtered or unexported fields
}

DataMapper 数据映射工具

func NewDataMapper

func NewDataMapper(file string) *DataMapper

NewDataMapper 初始化数据映射工具

func (*DataMapper) LoadFile

func (m *DataMapper) LoadFile(file string)

LoadFile 加载映射文件

func (*DataMapper) LoadString

func (m *DataMapper) LoadString(data string)

LoadString 加载映射数据

func (*DataMapper) Mapping

func (m *DataMapper) Mapping(field, match string) (string, bool)

Mapping 字段映射

type Mapper

type Mapper interface {

	// Mapping 字段映射
	Mapping(field, match string) (string, bool)
}

Mapper 数据映射工具 替换原始数据,用于统一输出数据格式

Jump to

Keyboard shortcuts

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