directive

package
v0.0.0-...-f9fc8b0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenEqual

func GenEqual(f *File, typeName string, flds []EqualFld)

func GenGetters

func GenGetters(f *File, typeName string, flds []*types.Var)

func GenMustNew

func GenMustNew(f *File, typeName string, publicFlds []*types.Var)

func GenNew

func GenNew(f *File, typeName string, publicFlds []*types.Var, validations []Validation, validatorMethod string)

func GenSetters

func GenSetters(f *File, typeName string, flds []*types.Var)

func GenStringer

func GenStringer(f *File, typeName string, flds []*types.Var)

func GenUnmarshalFromRepository

func GenUnmarshalFromRepository(f *File, typeName string, publicFlds, privateFlds []*types.Var)

Types

type EqualFld

type EqualFld struct {
	Field       *types.Var
	IsDeepEqual bool
}

type Validation

type Validation struct {
	Field  *types.Var
	ErrMsg string
}

Jump to

Keyboard shortcuts

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