Documentation
¶
Overview ¶
header.go
Index ¶
- Constants
- func NamespacedName(namespace, name string) string
- func SanitizePackageName(name string) string
- type ConstantParser
- type DocTemplateData
- type DocumentationGenerator
- type FuncParser
- type Generator
- type GeneratorError
- type GoFileGenerator
- type GoMethodSignature
- type GoParameter
- type HeaderGenerator
- type NamespaceParser
- type PHPFuncGenerator
- type ParameterInfo
- type ParameterParser
- type SourceAnalyzer
- type SourceParser
- type StubGenerator
- type TemplateData
- type Validator
Constants ¶
View Source
const BuildDir = "build"
Variables ¶
This section is empty.
Functions ¶
func NamespacedName ¶ added in v1.9.0
NamespacedName converts a namespace and name to a C-compatible format. E.g., namespace "Go\Extension" and name "MyClass" become "Go_Extension_MyClass". This symbol remains exported, so it's usable in templates.
Types ¶
type ConstantParser ¶
type ConstantParser struct{}
type DocTemplateData ¶
type DocTemplateData struct {
BaseName string
Functions []phpFunction
Classes []phpClass
}
type DocumentationGenerator ¶
type DocumentationGenerator struct {
// contains filtered or unexported fields
}
type FuncParser ¶
type FuncParser struct{}
type Generator ¶
type GeneratorError ¶
func (*GeneratorError) Error ¶
func (e *GeneratorError) Error() string
type GoFileGenerator ¶
type GoFileGenerator struct {
// contains filtered or unexported fields
}
type GoMethodSignature ¶
type GoMethodSignature struct {
MethodName string
Params []GoParameter
ReturnType string
}
type GoParameter ¶
type HeaderGenerator ¶
type HeaderGenerator struct {
// contains filtered or unexported fields
}
type NamespaceParser ¶ added in v1.9.0
type NamespaceParser struct{}
type PHPFuncGenerator ¶
type PHPFuncGenerator struct {
// contains filtered or unexported fields
}
type ParameterInfo ¶
type ParameterParser ¶
type ParameterParser struct{}
type SourceAnalyzer ¶
type SourceAnalyzer struct{}
type SourceParser ¶
type SourceParser struct{}
func (*SourceParser) ParseClasses ¶
func (p *SourceParser) ParseClasses(filename string) ([]phpClass, error)
EXPERIMENTAL
func (*SourceParser) ParseConstants ¶
func (p *SourceParser) ParseConstants(filename string) ([]phpConstant, error)
EXPERIMENTAL
func (*SourceParser) ParseFunctions ¶
func (p *SourceParser) ParseFunctions(filename string) ([]phpFunction, error)
EXPERIMENTAL
func (*SourceParser) ParseNamespace ¶ added in v1.9.0
func (p *SourceParser) ParseNamespace(filename string) (string, error)
EXPERIMENTAL
type StubGenerator ¶
type StubGenerator struct {
Generator *Generator
}
type TemplateData ¶
Click to show internal directories.
Click to hide internal directories.