Versions in this module Expand all Collapse all v1 v1.0.1 Nov 23, 2022 Changes in this version + func GetTSSource(config TSConfig) string v1.0.0 Nov 23, 2022 Changes in this version + type TSConfig struct + Url string + type TSConst struct + Name string + Value string + type TSDec struct + Name string + SourceInfo string + Value string + type TSEndpoint struct + File string + Line int + Method string + Name string + Path string + Request string + Response string + Source string + func ParseEndpoint(source string, file string, line int) TSEndpoint + func (e *TSEndpoint) ToTs(pkg string) string + func (e *TSEndpoint) VerifyTypes(info TSInfo, p string) + type TSEnum struct + Info []TSEnumInfo + Name string + type TSEnumInfo struct + Key string + Value string + type TSInfo struct + Packages map[string]TSInfoPakage + func (i *TSInfo) Populate() + type TSInfoPakage struct + type TSModule struct + Consts map[string]string + Endpoints map[string]string + Enums map[string]string + GTypes map[string]string + Structs map[string]string + Types map[string]string + type TSModuleInfo struct + type TSSField struct + DependOn bool + Json TSTagJson + Name string + SourceInfo string + Ts TSTagTs + TsType string + Type string + type TSSouces struct + Errors []string + Pakages map[string]TSModule + func (ts *TSSouces) AddDependencies(info TSInfo, p string, s string, dependencies []string) + func (ts *TSSouces) Populate(info TSInfo) + type TSSourceFile struct + Len int + Lines []TSSourceLine + Name string + Source string + type TSSourceLine struct + End int + Line int + Pos int + Source string + type TSStruct struct + Fields []TSSField + Name string + SourceInfo string + Typescript bool + type TSTagJson struct + Ignore bool + Name string + OmitEmpty bool + type TSTagTs struct + Expand bool + Type string + type TSType struct + Name string + SourceInfo string + TsType string + Type string + Typescript bool