generate

package
v0.0.0-...-6f8afe6 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Category

func Category() string

Category returns the mongo category.

func Clean

func Clean() error

Clean cleans the mongo templates.

func Do

func Do(ctx *Context) error

Do executes model template and output the result into the specified file path

func RevertTemplate

func RevertTemplate(name string) error

RevertTemplate reverts the given template.

func Templates

func Templates() error

Templates initializes the mongo templates.

func Update

func Update() error

Update cleans and updates the templates.

Types

type Context

type Context struct {
	Types       []string
	Cache       bool
	Easy        bool
	Output      string
	Cfg         *config.Config
	PackageName string
}

Context defines the model generation data what they needs

Jump to

Keyboard shortcuts

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