Documentation ¶
Index ¶
- Constants
- func AppendByteFile(filePath string, data []byte) error
- func AppendStringFile(filePath string, data string) error
- func CarGen(name, dbName, grpcPath, grpcPkgName, distPath, distPkg string)
- func CreateApiRouter(genPath string)
- func CreateFilePath(path string) error
- func GormGen(path, dsn, name string, tables []string)
- func IsExist(f string) bool
- func IsFile(f string) bool
- func ModelToProtobuf(path, protoPkg, goPkg, modelPath, modelName string)
- func ReadAll(filePth string) ([]byte, error)
- func WriteByteFile(filePath string, data []byte) error
- func WriteStringFile(filePath string, data string) error
- type Config
- type FileInfo
- type Generator
- type ServiceField
- type ServiceFileInfo
Constants ¶
View Source
const ( GenGrpc = "grpc" GenDB = "database" GenDoc = "doc" GenRouter = "router" )
Variables ¶
This section is empty.
Functions ¶
func AppendByteFile ¶
func AppendStringFile ¶
func CreateFilePath ¶
func ModelToProtobuf ¶
func ModelToProtobuf(path, protoPkg, goPkg, modelPath, modelName string)
func WriteByteFile ¶
func WriteStringFile ¶
Types ¶
type Config ¶
type Generator ¶
type Generator struct { Model string PkgPath string PkgName string DistPath string DistPkg string DbName string ServiceFields []ServiceField MethodImports []string ServiceFiles []ServiceFileInfo // contains filtered or unexported fields }
type ServiceField ¶
Click to show internal directories.
Click to hide internal directories.