Documentation
¶
Index ¶
- type TSNamer
- type TypeScriptify
- func (t *TypeScriptify) Add(obj interface{})
- func (t *TypeScriptify) AddEnumValues(typeOf reflect.Type, values interface{})
- func (t *TypeScriptify) AddType(typeOf reflect.Type)
- func (t *TypeScriptify) Convert(customCode map[string]string) (string, error)
- func (t TypeScriptify) ConvertToFile(fileName string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TypeScriptify ¶
type TypeScriptify struct { Prefix string Suffix string Indent string CreateFromMethod bool BackupDir string // If empty no backup DontExport bool CreateInterface bool // contains filtered or unexported fields }
func New ¶
func New() *TypeScriptify
func (*TypeScriptify) Add ¶
func (t *TypeScriptify) Add(obj interface{})
func (*TypeScriptify) AddEnumValues ¶ added in v0.0.10
func (t *TypeScriptify) AddEnumValues(typeOf reflect.Type, values interface{})
func (*TypeScriptify) AddType ¶
func (t *TypeScriptify) AddType(typeOf reflect.Type)
func (*TypeScriptify) Convert ¶
func (t *TypeScriptify) Convert(customCode map[string]string) (string, error)
func (TypeScriptify) ConvertToFile ¶
func (t TypeScriptify) ConvertToFile(fileName string) error
Click to show internal directories.
Click to hide internal directories.