nonNilFieldCount returns the number of set fields in RootCertificateOptions.
()
| 115 | |
| 116 | // nonNilFieldCount returns the number of set fields in RootCertificateOptions. |
| 117 | func (o RootCertificateOptions) nonNilFieldCount() int { |
| 118 | cnt := 0 |
| 119 | rv := reflect.ValueOf(o) |
| 120 | for i := 0; i < rv.NumField(); i++ { |
| 121 | if !rv.Field(i).IsNil() { |
| 122 | cnt++ |
| 123 | } |
| 124 | } |
| 125 | return cnt |
| 126 | } |
| 127 | |
| 128 | // IdentityCertificateOptions contains options to obtain identity certificates |
| 129 | // for both the client and the server. |
no outgoing calls
no test coverage detected