serialize

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

	DefaultSerialize 实现了 Serialize 接口,用于将 KisRowArr 序列化为指定类型的值,或将指定类型的值序列化为 KisRowArr。
    这部分是KisFlow默认提供的序列化办法,默认均是josn序列化,开发者可以根据自己的需求实现自己的序列化办法。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultSerialize

type DefaultSerialize struct{}

func (*DefaultSerialize) Marshal

func (f *DefaultSerialize) Marshal(i interface{}) (common.KisRowArr, error)

Marshal 用于将指定类型的值序列化为 KisRowArr(json 序列化)。

func (*DefaultSerialize) UnMarshal

func (f *DefaultSerialize) UnMarshal(arr common.KisRowArr, r reflect.Type) (reflect.Value, error)

UnMarshal 用于将 KisRowArr 反序列化为指定类型的值。

Jump to

Keyboard shortcuts

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