example

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestConvert

func TestConvert(t any) string

func UserSliceToUserDTOSlice

func UserSliceToUserDTOSlice(src []*entity.User) (dst []*dto.UserDTO)

func UserSliceToUserDTOSliceRaw

func UserSliceToUserDTOSliceRaw(src []entity.User) (dst []dto.UserDTO)

func UserToUserDTO

func UserToUserDTO(src *entity.User) (dst *dto.UserDTO)

func UserToUserDTORaw

func UserToUserDTORaw(src entity.User) (dst dto.UserDTO)

Types

type StructCopyGen

type StructCopyGen interface {
	// :match_field Email EMail
	// :match_method FullName FullName()
	// :conv LastName TestConvert
	// :conv Email TestConvert
	// :skip_field SkipField
	UserToUserDTO(src *entity.User) (dst *dto.UserDTO)

	// :match_field Email EMail
	// :skip_field SkipField
	UserToUserDTORaw(src entity.User) (dst dto.UserDTO)

	// :struct_conv UserToUserDTO
	UserSliceToUserDTOSlice(src []*entity.User) (dst []*dto.UserDTO)

	// :struct_conv UserToUserDTORaw
	UserSliceToUserDTOSliceRaw(src []entity.User) (dst []dto.UserDTO)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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