Documentation ¶
Index ¶
- func ModFuncs(parent, cc string, sub ...string) []func(m *core.Module) *exec.Cmd
- func SysFuncs(parent, cc string, sub ...string) []func(s *core.System) *exec.Cmd
- type Cmd
- type CmdSet
- type Entry
- type Language
- func CreateLanguage(name, parent string, sysScripts, modScripts *Scripts, fs *embed.FS, ...) *Language
- func Fortran(parent string) *Language
- func Go(parent string) *Language
- func GraphQL(parent string) *Language
- func Protobuf(parent string) *Language
- func Python(parent string) *Language
- func SQL(parent string) *Language
- func TypeScript(parent string) *Language
- func (l *Language) CreateDecl(f core.Field) (s string)
- func (l *Language) FS() *embed.FS
- func (l *Language) InputDecl(f core.Field) (s string)
- func (l *Language) InputString(t core.Type) (s string)
- func (l *Language) MakeArray(s string) string
- func (l *Language) TypeDecl(f core.Field) (s string)
- func (l *Language) TypeString(t core.Type) (s string)
- func (l *Language) UpdateDecl(f core.Field) (s string)
- type Scripts
- type TemplateLoader
- type TypeCrawler
- type TypeMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Language ¶
type Language struct { *CmdSet `yaml:"-"` Service string `yaml:"service"` Name string `yaml:"name"` Scripts *Scripts `yaml:"scripts"` TypeMap TypeMap `yaml:"type_map"` ArrayFmt string `yaml:"array_fmt"` // contains filtered or unexported fields }
func CreateLanguage ¶
func TypeScript ¶
type TemplateLoader ¶
type TemplateLoader struct {
// contains filtered or unexported fields
}
func NewLoader ¶
func NewLoader(parent string, lang *Language) *TemplateLoader
func (*TemplateLoader) Load ¶
func (l *TemplateLoader) Load() error
func (*TemplateLoader) Module ¶
func (l *TemplateLoader) Module() []*Entry
func (*TemplateLoader) System ¶
func (l *TemplateLoader) System() []*Entry
type TypeCrawler ¶
TypeCrawler visits all types and generates functions to translate inputs into the correct type
func NewCrawler ¶
func NewCrawler(l *Language, m *core.API) *TypeCrawler
func NewEntityCrawler ¶
func NewEntityCrawler(l *Language, m *core.API) *TypeCrawler
func NewSQLQueryCrawler ¶
func NewSQLQueryCrawler(l *Language, m *core.API) *TypeCrawler
func NewYamlCrawler ¶
func NewYamlCrawler(l *Language, m *core.API) *TypeCrawler
func (*TypeCrawler) Crawl ¶
func (c *TypeCrawler) Crawl() error
func (*TypeCrawler) String ¶
func (c *TypeCrawler) String() string
Click to show internal directories.
Click to hide internal directories.