String implements the fmt.Stringer interface for TLSVersion.
()
| 122 | |
| 123 | // String implements the fmt.Stringer interface for TLSVersion. |
| 124 | func (tv *TLSVersion) String() string { |
| 125 | if tv == nil || *tv == 0 { |
| 126 | return "" |
| 127 | } |
| 128 | for s, v := range TLSVersions { |
| 129 | if *tv == v { |
| 130 | return s |
| 131 | } |
| 132 | } |
| 133 | return fmt.Sprintf("%d", *tv) |
| 134 | } |
| 135 | |
| 136 | // BasicAuth contains basic HTTP authentication credentials. |
| 137 | type BasicAuth struct { |
nothing calls this directly
no outgoing calls
no test coverage detected