repository

package
v0.0.0-...-272d833 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gen

type Gen struct {
	EntityPackage     string
	EntityPackageName string
	Entity            string
	EntityWithSpace   string
	TableName         string
	Struct            *structtype.StructType
	PropToTag         structtype.PropToTag
	PropToType        structtype.PropToType
	config.RepositoryConfig
}

func NewGen

func NewGen(
	opt Options,
	repoConf config.RepositoryConfig,
	pkg *packages.Package,
	str *structtype.StructType,
) *Gen

func (*Gen) Generate

func (g *Gen) Generate(baseTemplate string) ([]byte, error)

Generate takes in all of the fields and generate the repo

type Options

type Options struct {
	Package string
	Entity  string
}

Jump to

Keyboard shortcuts

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