Documentation ¶
Index ¶
- Variables
- func CloneGitRepo(ctx context.Context, url string, path string)
- func EnsureLocalExamples(lang string) string
- func EnsureLocalTemplates() string
- func InitGit(outDir string)
- func Project(cfg *Config)
- func Schema(ctx context.Context, db string, templatesPath string, name string, create bool, ...) error
- type Collection
- type Config
- type JSONToGo
- type JSONToJava
- type JSONToLangType
- type JSONToTypeScript
- type TmplVars
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUnsupportedFormat = fmt.Errorf("unsupported language. supported are: TypeScript, Go, Java") ErrTemplatesInvalidPath = fmt.Errorf("only local templates path substitution is allowed") ErrUnknownFramewrok = fmt.Errorf("unknown framework") ErrDirAlreadyExists = fmt.Errorf("output directory already exists") )
View Source
var ErrUnknownScaffoldType = fmt.Errorf("unknown scaffold template")
View Source
var ErrUnsupportedSchemaTemplate = fmt.Errorf("unknown bootstrap schema template")
Functions ¶
func EnsureLocalExamples ¶
func EnsureLocalTemplates ¶
func EnsureLocalTemplates() string
Types ¶
type Collection ¶
type JSONToJava ¶
type JSONToJava struct{}
func (*JSONToJava) HasTime ¶
func (*JSONToJava) HasTime(schema string) bool
func (*JSONToJava) HasUUID ¶
func (*JSONToJava) HasUUID(schema string) bool
type JSONToTypeScript ¶
type JSONToTypeScript struct{}
func (*JSONToTypeScript) HasTime ¶
func (*JSONToTypeScript) HasTime(schema string) bool
func (*JSONToTypeScript) HasUUID ¶
func (*JSONToTypeScript) HasUUID(schema string) bool
Click to show internal directories.
Click to hide internal directories.