Documentation
¶
Index ¶
- Variables
- func Gen(_ *cobra.Command, _ []string) error
- func GetApiServiceName(apiDirName string) string
- func GetMainApiFilePath(apiDirName string) string
- func GetProtoDir(wd string) ([]os.DirEntry, error)
- func GetProtoFilenames(wd string) ([]string, error)
- type ApiFileTypes
- type ImportLines
- type RegisterLines
Constants ¶
This section is empty.
Variables ¶
View Source
var ( WorkingDir string Version string )
View Source
var TypesGoTpl = `// Code generated by jzero. DO NOT EDIT.
package types
import (
"time"
)
var (
_ = time.Now()
)
{{.Types}}`
Functions ¶
func GetApiServiceName ¶ added in v0.16.0
func GetMainApiFilePath ¶ added in v0.15.5
func GetProtoFilenames ¶
Types ¶
type ApiFileTypes ¶ added in v0.17.0
type ImportLines ¶
type ImportLines []string
func (ImportLines) String ¶
func (l ImportLines) String() string
type RegisterLines ¶
type RegisterLines []string
func (RegisterLines) String ¶
func (l RegisterLines) String() string
Click to show internal directories.
Click to hide internal directories.