Documentation
¶
Index ¶
- func CamelCaseToSnakeCase(s string) string
- func CamelCaseToTitleCase(str string) string
- func DashCaseToTitleCase(str string) string
- func NewCodeBlock(lines ...string) *codeBlock
- func SnakeCaseToCamelCase(str string) string
- func TitleCaseToSnakeCase(s string) string
- func ToTitleCase(s string) string
- type FileWriter
- type GoConstraintInterface
- type GoFile
- type GoStruct
- type GoStructItem
- type OrderedMap
- type PythonClass
- type PythonClassItem
- type PythonFile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CamelCaseToTitleCase ¶
func DashCaseToTitleCase ¶
func NewCodeBlock ¶
func NewCodeBlock(lines ...string) *codeBlock
func SnakeCaseToCamelCase ¶
func TitleCaseToSnakeCase ¶
func ToTitleCase ¶
Types ¶
type FileWriter ¶
type FileWriter interface {
Write() error
}
type GoConstraintInterface ¶
func NewGoConstraintInterface ¶
func NewGoConstraintInterface(name, description string) *GoConstraintInterface
func (*GoConstraintInterface) AddItem ¶
func (g *GoConstraintInterface) AddItem(item string)
func (*GoConstraintInterface) Write ¶
func (g *GoConstraintInterface) Write() (string, error)
type GoStruct ¶
type GoStruct struct {
Name string
Description string
Items *orderedmap.OrderedMap
}
func NewGoStruct ¶
func NewGoStruct(name, description string, items []GoStructItem) *GoStruct
type GoStructItem ¶
type OrderedMap ¶
type OrderedMap[T any] struct { // contains filtered or unexported fields }
func NewOrderedMap ¶
func NewOrderedMap[T any](data map[string]T) *OrderedMap[T]
func (*OrderedMap[T]) Get ¶
func (o *OrderedMap[T]) Get(key string) (T, error)
func (*OrderedMap[T]) Keys ¶
func (o *OrderedMap[T]) Keys() []string
func (*OrderedMap[T]) Set ¶
func (o *OrderedMap[T]) Set(key string, item T)
func (*OrderedMap[T]) SortKeys ¶
func (o *OrderedMap[T]) SortKeys()
type PythonClass ¶
type PythonClass struct {
Name string
Description string
Items []PythonClassItem
}
func NewPythonClass ¶
func NewPythonClass(name, description string) *PythonClass
func (*PythonClass) AddItem ¶
func (p *PythonClass) AddItem(name, value, constructorName, alias, description string, required, isObjectArray bool)
func (PythonClass) HasAsync ¶
func (p PythonClass) HasAsync() bool
func (PythonClass) HasIf ¶
func (p PythonClass) HasIf() bool
func (PythonClass) HasWith ¶
func (p PythonClass) HasWith() bool
func (PythonClass) Write ¶
func (p PythonClass) Write() (string, error)
func (PythonClass) WriteTypedDict ¶
func (p PythonClass) WriteTypedDict() (string, error)
type PythonClassItem ¶
type PythonFile ¶
type PythonFile struct {
Name string
Contents *codeBlock
}
func NewPythonFile ¶
func NewPythonFile( name string, contents *codeBlock, ) PythonFile
func (PythonFile) Write ¶
func (p PythonFile) Write() error
Click to show internal directories.
Click to hide internal directories.