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