Documentation
¶
Overview ¶
header.go
Index ¶
- Constants
- func ReadFile(filename string) (string, error)
- func SanitizePackageName(name string) string
- func WriteFile(filename, content string) error
- type ConstantParser
- type DocTemplateData
- type DocumentationGenerator
- type FuncParser
- type Generator
- type GeneratorError
- type GoFileGenerator
- type GoMethodSignature
- type GoParameter
- type HeaderGenerator
- 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 ¶
Types ¶
type ConstantParser ¶
type ConstantParser struct {
// contains filtered or unexported fields
}
func NewConstantParserWithDefRegex ¶
func NewConstantParserWithDefRegex() *ConstantParser
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 {
// contains filtered or unexported fields
}
func NewFuncParserDefRegex ¶
func NewFuncParserDefRegex() *FuncParser
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 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
type StubGenerator ¶
type StubGenerator struct {
Generator *Generator
}
type TemplateData ¶
type TemplateData struct {
HeaderGuard string
Constants []phpConstant
Classes []phpClass
}
Click to show internal directories.
Click to hide internal directories.