codegen

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 10, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(targetPkg, srcName string, tags, types []string, exclude bool, nameTag, optTag string, out io.Writer) error

Generate generates mapper go code `name_tag:"column_name" opt_tag:",auto"` or `tag:"column_name,auto"` if tags are equal.

func SimplifiedGenerate added in v0.3.0

func SimplifiedGenerate(filename, pkg, nameTag, optTag string, types []string, exclude bool, out io.Writer) error

SimplifiedGenerate generates mapper go code `name_tag:"column_name" opt_tag:",auto"` or `tag:"column_name,auto"` if tags are equal.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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