Documentation ¶
Index ¶
- Constants
- func Type(field *Field) (string, string)
- type Field
- type GetTypeName
- type Kind
- type Options
- type Struct
- type StructToTS
- func (s *StructToTS) Add(v interface{}) *Struct
- func (s *StructToTS) AddWithName(v interface{}, name string) *Struct
- func (s *StructToTS) GenerateFile(path string) (err error)
- func (root *StructToTS) GenerateOpenApi(s *Struct) spec.Schema
- func (root *StructToTS) GetTypeName(t reflect.Type) string
- func (s *StructToTS) RenderTo(w io.Writer) (err error)
- func (s *StructToTS) RenderToSwagger() spec.Swagger
- type TypescriptEnumMember
Constants ¶
View Source
const ( RegularType = iota Enum )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GetTypeName ¶
type Struct ¶
type StructToTS ¶
type StructToTS struct {
// contains filtered or unexported fields
}
func New ¶
func New() *StructToTS
func (*StructToTS) Add ¶
func (s *StructToTS) Add(v interface{}) *Struct
func (*StructToTS) AddWithName ¶
func (s *StructToTS) AddWithName(v interface{}, name string) *Struct
func (*StructToTS) GenerateFile ¶
func (s *StructToTS) GenerateFile(path string) (err error)
func (*StructToTS) GenerateOpenApi ¶
func (root *StructToTS) GenerateOpenApi(s *Struct) spec.Schema
func (*StructToTS) GetTypeName ¶
func (root *StructToTS) GetTypeName(t reflect.Type) string
func (*StructToTS) RenderToSwagger ¶
func (s *StructToTS) RenderToSwagger() spec.Swagger
type TypescriptEnumMember ¶
Click to show internal directories.
Click to hide internal directories.