// StaticVerifierFn is a VerifyOptionFunc that always returns the same value. This allows verify options that cannot change. func StaticVerifierFn(opts x509.VerifyOptions) VerifyOptionFunc { … } // NewStaticVerifierFromFile creates a new verification func from a file. It reads the content and then fails. // It will return a nil function if you pass an empty CA file. func NewStaticVerifierFromFile(clientCA string) (VerifyOptionFunc, error) { … } type StringSliceProvider … type StringSliceProviderFunc … // Value returns the current string slice. Callers should never mutate the returned value. func (d StringSliceProviderFunc) Value() []string { … } type StaticStringSlice … // Value returns the current string slice. Callers should never mutate the returned value. func (s StaticStringSlice) Value() []string { … }