typescript

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TranslateReflectTypeString

func TranslateReflectTypeString(reflectTypeString string) string

TranslateReflectTypeString does what is says it does

Types

type Field

type Field struct {
	Name     string
	Type     string
	Optional bool
	Null     bool
}

Field represents a TypeScript Interface field

func (Field) String

func (f Field) String() string

type Interface

type Interface struct {
	Name   string
	Fields []Field
}

Interface represents a TypeScript Interface

func (Interface) String

func (i Interface) String() string

type Interfaces

type Interfaces []Interface

func Generate

func Generate(goStructs []interface{}) Interfaces

Generate a list of TypeScript Interfaces

func (Interfaces) CreateFile

func (i Interfaces) CreateFile(targetFile string) error

Jump to

Keyboard shortcuts

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