| 96 | } |
| 97 | |
| 98 | type TypeScriptify struct { |
| 99 | Prefix string |
| 100 | Suffix string |
| 101 | Indent string |
| 102 | CreateFromMethod bool |
| 103 | CreateConstructor bool |
| 104 | BackupDir string // If empty no backup |
| 105 | DontExport bool |
| 106 | CreateInterface bool |
| 107 | customImports []string |
| 108 | |
| 109 | structTypes []StructType |
| 110 | enumTypes []EnumType |
| 111 | enums map[reflect.Type][]enumElement |
| 112 | kinds map[reflect.Kind]string |
| 113 | |
| 114 | fieldTypeOptions map[reflect.Type]TypeOptions |
| 115 | |
| 116 | // throwaway, used when converting |
| 117 | alreadyConverted map[string]bool |
| 118 | |
| 119 | Namespace string |
| 120 | KnownStructs *slicer.StringSlicer |
| 121 | KnownEnums *slicer.StringSlicer |
| 122 | } |
| 123 | |
| 124 | func New() *TypeScriptify { |
| 125 | result := new(TypeScriptify) |
nothing calls this directly
no outgoing calls
no test coverage detected