Documentation ¶
Index ¶
- Constants
- func ApiType(typ reflect.Type) (string, bool, error)
- func ApiTypeCustomList(typeList []reflect.Type) ([]string, error)
- func ExpectedType(t reflect.Type) bool
- func GenMemberType(m reflect.Type, lang string) (string, error)
- func GetObjectMap(ob *ObjectMap, types []reflect.Type, lang, memberType string) error
- func GetTyp(typ reflect.Type) reflect.Type
- func ToTypeScriptType(typ reflect.Type) (string, error)
- func TsPrimitiveType(typeName string) (string, error)
- func TsRawType(typeName string) (string, error)
- func TsType(typeName string) string
- type Member
- type Object
- type ObjectMap
- func (o *ObjectMap) Delete(key string)
- func (o *ObjectMap) Deletes(keys []string)
- func (o *ObjectMap) Get(key string) (Object, bool)
- func (o *ObjectMap) IsExistMember(name string) bool
- func (o *ObjectMap) Len() int
- func (o *ObjectMap) NoPrimMembers(lang string) []string
- func (o *ObjectMap) ToList() []Object
- func (o *ObjectMap) ToTypeScript()
- type Types
Constants ¶
View Source
const ( MemberTypeJson = "json" MemberTypeNonBody = "!json" MemberTypeForm = "form" MemberTypeAll = "" )
Variables ¶
This section is empty.
Functions ¶
func ExpectedType ¶
func GetObjectMap ¶
func TsPrimitiveType ¶
Types ¶
type Member ¶
type ObjectMap ¶
func (*ObjectMap) IsExistMember ¶
func (*ObjectMap) NoPrimMembers ¶
func (*ObjectMap) ToTypeScript ¶
func (o *ObjectMap) ToTypeScript()
Click to show internal directories.
Click to hide internal directories.