We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72a3fd8 commit 9acffe9Copy full SHA for 9acffe9
typescriptify/typescriptify.go
@@ -89,6 +89,7 @@ type TypeScriptify struct {
89
CreateInterface bool
90
CustomJsonTag string
91
customImports []string
92
+ silent bool
93
94
structTypes []StructType
95
enumTypes []EnumType
@@ -164,7 +165,16 @@ func deepFields(typeOf reflect.Type) []reflect.StructField {
164
165
return fields
166
}
167
168
+func (ts *TypeScriptify) Silent() *TypeScriptify {
169
+ ts.silent = true
170
+ return ts
171
+}
172
+
173
func (ts TypeScriptify) logf(depth int, s string, args ...interface{}) {
174
+ if ts.silent {
175
+ return
176
+ }
177
178
fmt.Printf(strings.Repeat(" ", depth)+s+"\n", args...)
179
180
0 commit comments