Documentation
¶
Overview ¶
* GoAstra CLI - Go Parser * * Parses Go source files to extract struct definitions * for TypeScript code generation.
* GoAstra CLI - Service Generator * * Generates Angular services from Go type definitions. * Creates type-safe API clients with CRUD operations.
* GoAstra CLI - TypeScript Generator * * Converts Go type definitions to TypeScript interfaces. * Generates type-safe models for Angular frontend.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoParser ¶
type GoParser struct {
// contains filtered or unexported fields
}
* GoParser extracts type definitions from Go source files.
func NewGoParser ¶
* NewGoParser creates a new parser instance.
type ServiceGenerator ¶
type ServiceGenerator struct {
// contains filtered or unexported fields
}
* ServiceGenerator creates Angular service files from Go types.
func NewServiceGenerator ¶
func NewServiceGenerator(outputPath string) *ServiceGenerator
* NewServiceGenerator creates a new generator instance.
func (*ServiceGenerator) Generate ¶
func (g *ServiceGenerator) Generate(types []TypeDef) error
* Generate creates Angular service files for applicable types.
type TypeScriptGenerator ¶
type TypeScriptGenerator struct {
// contains filtered or unexported fields
}
* TypeScriptGenerator creates TypeScript files from Go types.
func NewTypeScriptGenerator ¶
func NewTypeScriptGenerator(outputPath string) *TypeScriptGenerator
* NewTypeScriptGenerator creates a new generator instance.
func (*TypeScriptGenerator) Generate ¶
func (g *TypeScriptGenerator) Generate(types []TypeDef) error
* Generate creates TypeScript interface files for all types.