MCPcopy Create free account
hub / github.com/SenseUnit/dumbproxy / Set

Method Set

main.go:137–144  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

135type TLSVersionArg uint16
136
137func (a *TLSVersionArg) Set(s string) error {
138 ver, err := tlsutil.ParseVersion(s)
139 if err != nil {
140 return err
141 }
142 *a = TLSVersionArg(ver)
143 return nil
144}
145
146func (a *TLSVersionArg) String() string {
147 return tlsutil.FormatVersion(uint16(*a))

Callers

nothing calls this directly

Calls 2

ParseVersionFunction · 0.92
TLSVersionArgTypeAlias · 0.85

Tested by

no test coverage detected