Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Contains ¶
https://play.golang.org/p/Qg_uv_inCek contains checks if a string is present in a slice
Types ¶
type ID ¶
type ID [32]byte
ID is the type representing a generated ID.
func (ID) Compare ¶
Compares the two given IDs. Note that this function is NOT SAFE AGAINST TIMING ATTACKS. If you are simply checking for equality, please use the Equals function, which is.
func (ID) Equals ¶
Checks the two given IDs for equality. This function uses a constant-time comparison algorithm to prevent timing attacks.
func (*ID) MarshalText ¶
Implements the `TextMarshaler` interface from the encoding package.
func (*ID) UnmarshalText ¶
Implements the `TextUnmarshaler` interface from the encoding package.
type ImproperCertsNumberError ¶
type ImproperCertsNumberError struct {
// contains filtered or unexported fields
}
ImproperCertsNumberError is returned from Server/Client whenever the remote peer presents a number of PeerCertificates that is not 1.
func (ImproperCertsNumberError) Error ¶
func (e ImproperCertsNumberError) Error() string