transx

package module
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 3 Imported by: 0

README

go-transx

Transform Fields of Source Struct to Fields of Destination Struct

Installation

go get git.verzth.work/go/transx

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrSrcNotStruct    = errors.New("source is not a struct")
	ErrDstNotPtrStruct = errors.New("destination is not pointer of a struct")
	ErrSrcSliceNil     = errors.New("source slice is nil")
	ErrSrcNotSlice     = errors.New("source is not a slice")
	ErrDstSliceNil     = errors.New("destination slice is nil")
	ErrDstNotSlice     = errors.New("destination is not a slice")
	ErrDstSliceNotPtr  = errors.New("destination is not pointer of a slice")
)

Functions

func Transform

func Transform(source any, dest any) error

func TransformSlice added in v0.0.2

func TransformSlice(source any, dest any) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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