typescriptify

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 4, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToCamel

func ToCamel(s string) string

Types

type TypeScriptify

type TypeScriptify struct {
	Prefix           string
	Suffix           string
	Indent           string
	CreateFromMethod bool
	DoExportClass    bool
	BackupExtension  string // If empty no backup
	UseInterface     bool
	// contains filtered or unexported fields
}

func New

func New() *TypeScriptify

func (*TypeScriptify) Add

func (t *TypeScriptify) Add(obj 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL