marshal

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: May 4, 2023 License: MIT Imports: 10 Imported by: 1

Documentation

Overview

Marshaller / Unmarshaller for "jsonlp", super loose JSON + TOML parsers, package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Unmarshal

func Unmarshal(from interface{}, to interface{}, opts *MarshalOptions) error

Types

type IMarshal

type IMarshal interface {
	MarshalLp() (to interface{}, err error)
}

type IUnmarshal

type IUnmarshal interface {
	UnmarshalLp(from interface{}) error
}

type MarshalOptions

type MarshalOptions struct {
	TagName                string // Tag name of the struct fields
	NoCopyUnexportedFields bool   // If true, no shallow copying of unexported fields
	NoCustomMarshaller     bool   // If true, IMarshal and IUnmarshal are not used
}

Jump to

Keyboard shortcuts

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