Documentation
¶
Index ¶
- type BasicCodeCreator
- func (bcc *BasicCodeCreator) Block(prefix string, block func(), suffix string)
- func (bcc *BasicCodeCreator) Comment(lines string)
- func (bcc *BasicCodeCreator) Comments(lines ...string)
- func (bcc *BasicCodeCreator) For(initState, condition, iterationStep string, block func())
- func (bcc *BasicCodeCreator) ForIndexed(indexVar, startValue, upperBound, step string, block func())
- func (bcc *BasicCodeCreator) If(condition string, block func())
- func (bcc *BasicCodeCreator) IfElse(condition string, block func(), elseBlock func())
- func (bcc *BasicCodeCreator) NewVariable(name string) string
- type CodeCreator
- type CppCodeCreator
- type CppHelper
- type LanguageBundle
- type PhpCodeCreator
- type PhpHelder
- func (ph PhpHelder) AddAssign(name, value string) string
- func (ph PhpHelder) Assign(name, value string) string
- func (ph PhpHelder) CheckBit(target string, bit int) string
- func (ph PhpHelder) Equal(left, right string) string
- func (ph PhpHelder) NotEqual(left, right string) string
- func (ph PhpHelder) OrAssign(name, value string) string
- func (ph PhpHelder) SubAssign(name, value string) string
- func (ph PhpHelder) TL2CountBytes(value string) string
- func (ph PhpHelder) TL2FetchSize() string
- func (ph PhpHelder) TL2FetchSizeTo(name string) string
- func (ph PhpHelder) TL2SkipBytes(value string) string
- func (ph PhpHelder) TL2StoreSize(value string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicCodeCreator ¶
type BasicCodeCreator struct {
CodeCreator
LanguageBundle
// contains filtered or unexported fields
}
func (*BasicCodeCreator) Block ¶
func (bcc *BasicCodeCreator) Block(prefix string, block func(), suffix string)
func (*BasicCodeCreator) Comment ¶
func (bcc *BasicCodeCreator) Comment(lines string)
func (*BasicCodeCreator) Comments ¶
func (bcc *BasicCodeCreator) Comments(lines ...string)
func (*BasicCodeCreator) For ¶
func (bcc *BasicCodeCreator) For(initState, condition, iterationStep string, block func())
func (*BasicCodeCreator) ForIndexed ¶
func (bcc *BasicCodeCreator) ForIndexed(indexVar, startValue, upperBound, step string, block func())
func (*BasicCodeCreator) If ¶
func (bcc *BasicCodeCreator) If(condition string, block func())
func (*BasicCodeCreator) IfElse ¶
func (bcc *BasicCodeCreator) IfElse(condition string, block func(), elseBlock func())
func (*BasicCodeCreator) NewVariable ¶
func (bcc *BasicCodeCreator) NewVariable(name string) string
type CodeCreator ¶
type CodeCreator struct {
Shift string
// contains filtered or unexported fields
}
func (*CodeCreator) AddBlock ¶
func (cc *CodeCreator) AddBlock(block func())
func (*CodeCreator) AddLines ¶
func (cc *CodeCreator) AddLines(lines ...string)
func (*CodeCreator) AddShift ¶
func (cc *CodeCreator) AddShift(shift int)
func (*CodeCreator) Print ¶
func (cc *CodeCreator) Print() []string
type CppCodeCreator ¶
type CppCodeCreator struct {
BasicCodeCreator
CppHelper
}
func NewCppCodeCreator ¶
func NewCppCodeCreator() CppCodeCreator
type LanguageBundle ¶
type LanguageBundle struct {
// contains filtered or unexported fields
}
type PhpCodeCreator ¶
type PhpCodeCreator struct {
PhpHelder
BasicCodeCreator
}
func NewPhpCodeCreator ¶
func NewPhpCodeCreator() PhpCodeCreator
type PhpHelder ¶
type PhpHelder struct{}
func (PhpHelder) TL2CountBytes ¶
func (PhpHelder) TL2FetchSize ¶
func (PhpHelder) TL2FetchSizeTo ¶
func (PhpHelder) TL2SkipBytes ¶
func (PhpHelder) TL2StoreSize ¶
Click to show internal directories.
Click to hide internal directories.