Documentation ¶
Index ¶
- func Path(p string) string
- func ToCamelCase(str string) string
- func ToSnakeCase(str string) string
- type Writer
- func (w *Writer) Argument(name string) error
- func (w *Writer) ConditionExpression(cond string, trueCase string, falseCase string) error
- func (w *Writer) Const(name string, typ string, value string) error
- func (w *Writer) EndAssignment() error
- func (w *Writer) EndBlock(newLined bool) error
- func (w *Writer) EndCall() error
- func (w *Writer) EndClass() error
- func (w *Writer) EndConstructor() error
- func (w *Writer) EndConstructorDecl() error
- func (w *Writer) EndFunction() error
- func (w *Writer) EndFunctionDecl(returnType string) error
- func (w *Writer) EndLine() error
- func (w *Writer) Import(path string) error
- func (w *Writer) ImportAs(path string, alias string) error
- func (w *Writer) Literal(s string) error
- func (w *Writer) MultiLineComment(s string) error
- func (w *Writer) NamedArgument(name string, value string) error
- func (w *Writer) NewLine() error
- func (w *Writer) Parameter(name string, typ string) error
- func (w *Writer) ParameterWithDefault(name string, typ string, def string) error
- func (w *Writer) ReturnEnd() error
- func (w *Writer) ReturnStart() error
- func (w *Writer) SingleLineComment(s string) error
- func (w *Writer) Space() error
- func (w *Writer) StartAssignment(field string) error
- func (w *Writer) StartBlock(newLined bool, parameters ...string) error
- func (w *Writer) StartCall(fn string) error
- func (w *Writer) StartClass(name string, extends string, implements ...string) error
- func (w *Writer) StartConstructorDecl(name string) error
- func (w *Writer) StartFunctionDecl(name string) error
- func (w *Writer) StartStaticFunctionDecl(name string) error
- func (w *Writer) StaticConst(name string, typ string, value string) error
- func (w *Writer) Type(typ string) error
- func (w *Writer) Variable(name string, typ string, value string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToCamelCase ¶
func ToSnakeCase ¶
Types ¶
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
func (*Writer) ConditionExpression ¶
func (*Writer) EndAssignment ¶
func (*Writer) EndConstructor ¶
func (*Writer) EndConstructorDecl ¶
func (*Writer) EndFunction ¶
func (*Writer) EndFunctionDecl ¶
func (*Writer) MultiLineComment ¶
func (*Writer) ParameterWithDefault ¶
func (*Writer) ReturnStart ¶
func (*Writer) SingleLineComment ¶
func (*Writer) StartAssignment ¶
func (*Writer) StartClass ¶
func (*Writer) StartConstructorDecl ¶
func (*Writer) StartFunctionDecl ¶
func (*Writer) StartStaticFunctionDecl ¶
func (*Writer) StaticConst ¶
Click to show internal directories.
Click to hide internal directories.