nocase

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BtoUser

func BtoUser(src *ModelB) (dst *model.User)

BtoUser demonstrates copy an internal to external package type. It skips private fields (and getters) in the latter type.

Types

type ModelA

type ModelA struct {
	ID   uint64
	Name string
}

func BtoA

func BtoA(src *ModelB) (dst *ModelA)

type ModelB

type ModelB struct {
	// contains filtered or unexported fields
}

func AtoB

func AtoB(src *ModelA) (dst *ModelB)

AtoB demonstrates local to local copy with case-insensitive field matching. It shows that a private getter precedence over its (exported) counterpart field.

func UserToB

func UserToB(src *model.User) (dst *ModelB)

UserToB demonstrates copy an external package type to internal. It skips private fields (and getters) in the former type.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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