Applies go fmt to all the code

This commit is contained in:
Henry Case 2018-06-19 11:17:19 +01:00
parent 81ee64180a
commit 4b1b463735
4 changed files with 27 additions and 27 deletions

View File

@ -41,7 +41,7 @@ type clientHelloMsg struct {
// Marshalling of signature_algorithms extension see https://tools.ietf.org/html/rfc5246#section-7.4.1.4.1 // Marshalling of signature_algorithms extension see https://tools.ietf.org/html/rfc5246#section-7.4.1.4.1
// for more details. Extension is serialized in data buffer // for more details. Extension is serialized in data buffer
// Function advances data slice and returns it, so that it can be used for further processing // Function advances data slice and returns it, so that it can be used for further processing
func marshallExtensionSignatureAlgorithms(data []byte, sigSchemes []SignatureScheme) ([]byte) { func marshallExtensionSignatureAlgorithms(data []byte, sigSchemes []SignatureScheme) []byte {
data[0] = byte(extensionSignatureAlgorithms >> 8) data[0] = byte(extensionSignatureAlgorithms >> 8)
data[1] = byte(extensionSignatureAlgorithms) data[1] = byte(extensionSignatureAlgorithms)
l := 2 + 2*len(sigSchemes) l := 2 + 2*len(sigSchemes)