excluded unnecessary types to reduce the size of the generated declarations file
This commit is contained in:
parent
1563855251
commit
f4a6d8af49
File diff suppressed because it is too large
Load Diff
|
@ -922,6 +922,23 @@ func main() {
|
||||||
MethodNameFormatter: func(s string) string {
|
MethodNameFormatter: func(s string) string {
|
||||||
return mapper.MethodName(nil, reflect.Method{Name: s})
|
return mapper.MethodName(nil, reflect.Method{Name: s})
|
||||||
},
|
},
|
||||||
|
TypeMappings: map[string]string{
|
||||||
|
"crypto.*": "any",
|
||||||
|
"acme.*": "any",
|
||||||
|
"autocert.*": "any",
|
||||||
|
"driver.*": "any",
|
||||||
|
"reflect.*": "any",
|
||||||
|
"fmt.*": "any",
|
||||||
|
"rand.*": "any",
|
||||||
|
"tls.*": "any",
|
||||||
|
"asn1.*": "any",
|
||||||
|
"pkix.*": "any",
|
||||||
|
"x509.*": "any",
|
||||||
|
"pflag.*": "any",
|
||||||
|
"flag.*": "any",
|
||||||
|
"log.*": "any",
|
||||||
|
"http.Client": "any",
|
||||||
|
},
|
||||||
Indent: " ", // use only a single space to reduce slight the size
|
Indent: " ", // use only a single space to reduce slight the size
|
||||||
WithPackageFunctions: true,
|
WithPackageFunctions: true,
|
||||||
Heading: declarations,
|
Heading: declarations,
|
||||||
|
|
Loading…
Reference in New Issue