wish

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValidWishName

func IsValidWishName(wishName string) bool

IsValidWishName checks if the wishName is valid or not.

Types

type Wish

type Wish interface {
	FullFill() []byte
	Name() string
	File() string
	Package() string
	Struct() string
	Fields() []*ast.Field
}

Wish is an interface to hide the generation logic behind it.

func NewFluentWish

func NewFluentWish(fileName, packageName, structName string, fields []*ast.Field) Wish

func NewGetterWish

func NewGetterWish(fileName, packageName, structName string, fields []*ast.Field) Wish

func NewSetterWish

func NewSetterWish(fileName, packageName, structName string, fields []*ast.Field) Wish

Jump to

Keyboard shortcuts

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