go_gen

command module
v0.0.0-...-a4dc88f Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2022 License: MIT Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

go_gen

go_gen is a code generator for golang

Functions

generate rds db model
  • generate with rds ddl sql
cd xxx_repo(e.g. cd go_gen)
go_gen model -ddlPath internal/testdata/test.sql -output internal/testdata -override
  • generate with db dns address (and use initialisms)
cd xxx_repo(e.g. cd go_gen)
# gen all 
go_gen model -ddlPath "userName:password@tcp(IP:Port)/DBName" -output internal/testdata/dbmodels -override -initialisms
# specify some tables
go_gen model -ddlPath "userName:password@tcp(IP:Port)/DBName" -output internal/testdata/dbmodels -override -initialisms -tables test1,a
# output to cmd window instead of files
go_gen model -ddlPath "userName:password@tcp(IP:Port)/DBName" -output CMD -override -initialisms -tables test1,a

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
tpl

Jump to

Keyboard shortcuts

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