Documentation ¶
Index ¶
Constants ¶
View Source
const DomainTmpl = `` /* 731-byte string literal not displayed */
View Source
const GoModTmpl = `module {{ . }}
go 1.18
`
View Source
const RepositoryTmpl = `` /* 1433-byte string literal not displayed */
View Source
const ServiceTmpl = `` /* 1689-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBConfig ¶
type DBConfig struct { DBName string `toml:"db-name" yaml:"db-name"` Host string `toml:"host" yaml:"host" default:"localhost"` Port int `toml:"port" yaml:"port" default:"3306"` User string `toml:"user" yaml:"user"` Password string `toml:"password" yaml:"password"` }
func ReadDBConfig ¶
type DomainTmplText ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
func NewGenerator ¶
func (*Generator) GenServiceFile ¶
type RepositoryTmplText ¶
type ServiceTmplText ¶
Click to show internal directories.
Click to hide internal directories.