transform

package
v2.0.0-dev.5 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base64Encode

func Base64Encode(para interface{}) (string, error)

func GenTp

func GenTp(dt string) (*template.Template, error)

func RegisterAdditionalFuncs

func RegisterAdditionalFuncs()

func TransItem

func TransItem(input interface{}, dataField string, fields []string) (interface{}, bool, error)

TransItem If you do not need to convert data to []byte, you can use this function directly. Otherwise, use TransFunc.

Types

type TransFunc

type TransFunc func(interface{}) ([]byte, bool, error)

TransFunc is the function to transform data

func GenTransform

func GenTransform(dt string, format string, schemaId string, delimiter string, dataField string, fields []string) (TransFunc, error)

Jump to

Keyboard shortcuts

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