Documentation
¶
Index ¶
- type Function
- type FunctionBodyMaker
- type FunctionBodyMakerProvider
- type FunctionGroup
- type Generator
- type GenericFunctionBodyMaker
- type Implement
- type ImplementV1
- type ImplementV2
- type Parser
- func (p *Parser) Config() (juice.Configuration, error)
- func (p *Parser) Namespace() (string, error)
- func (p *Parser) Output() (io.Writer, error)
- func (p *Parser) TypeInterface() (*ast.InterfaceType, *ast.File, error)
- func (p *Parser) WithConfig(cfg string) *Parser
- func (p *Parser) WithImpl(impl string) *Parser
- func (p *Parser) WithNamespace(namespace string) *Parser
- func (p *Parser) WithOutput(output string) *Parser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Function ¶
type Function struct {
// contains filtered or unexported fields
}
func (*Function) Params ¶
func (f *Function) Params() ast.ValueGroup
func (*Function) Results ¶
func (f *Function) Results() ast.ValueGroup
type FunctionBodyMaker ¶
type FunctionBodyMaker interface {
Make() error
}
type FunctionBodyMakerProvider ¶ added in v0.0.6
type FunctionBodyMakerProvider func(statement juice.Statement, function *Function) FunctionBodyMaker
type FunctionGroup ¶
type FunctionGroup []*Function
func (FunctionGroup) String ¶
func (f FunctionGroup) String() string
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
func NewGenerator ¶
type GenericFunctionBodyMaker ¶ added in v0.0.6
type GenericFunctionBodyMaker struct {
// contains filtered or unexported fields
}
func (*GenericFunctionBodyMaker) Make ¶ added in v0.0.6
func (f *GenericFunctionBodyMaker) Make() error
type Implement ¶
func NewImplement ¶
func NewImplement(writer *ast.File, iface *ast.InterfaceType, cfg juice.Configuration, namespace, version, input, output string) (Implement, error)
type ImplementV1 ¶ added in v0.0.6
type ImplementV1 struct {
// contains filtered or unexported fields
}
func (ImplementV1) Imports ¶ added in v0.0.6
func (i ImplementV1) Imports() astlite.ImportGroup
func (*ImplementV1) Render ¶ added in v0.0.6
func (i *ImplementV1) Render() (string, error)
type ImplementV2 ¶ added in v0.0.6
type ImplementV2 struct {
// contains filtered or unexported fields
}
func (ImplementV2) Imports ¶ added in v0.0.6
func (i ImplementV2) Imports() astlite.ImportGroup
func (*ImplementV2) Render ¶ added in v0.0.6
func (i *ImplementV2) Render() (string, error)
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
func (*Parser) TypeInterface ¶
func (*Parser) WithConfig ¶
func (*Parser) WithNamespace ¶
func (*Parser) WithOutput ¶
Click to show internal directories.
Click to hide internal directories.