Versions in this module Expand all Collapse all v0 v0.4.0 Nov 9, 2023 Changes in this version + const MemberTypeAll + const MemberTypeForm + const MemberTypeJson + const MemberTypeNonBody + 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 struct + Comment string + FormName string + JsonName string + Name string + NotMust bool + Options []string + Type string + func GetMembers(list *ObjectMap, tp reflect.Type, lang, memberType string) ([]Member, []reflect.Type, error) + type Object struct + Comment string + JsonName string + Members []Member + Name string + type ObjectMap map[string]Object + 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 []reflect.Type + func (a *Types) GetType(typeName string) reflect.Type + func (a *Types) GetTypes(typeNameList []string) Types