convert

package
v1.0.19 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultDst string = "dst"
View Source
const DefaultSrc string = "src"

Variables

This section is empty.

Functions

func ConvertField

func ConvertField(
	templates *template.Template,
	field *entity.GormModelField,
	dst *entity.GormModelMetadata,
) string

Convert the src field to the matching field on dst.

func ConvertFieldNamed

func ConvertFieldNamed(
	templates *template.Template,
	field *entity.GormModelField,
	dst *entity.GormModelMetadata,
	from, to string,
) string

Convert the src field to the matching field on dst.

Types

This section is empty.

Jump to

Keyboard shortcuts

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