Style: format code by gofumpt (#1022)

This commit is contained in:
Loyalsoldier
2021-05-20 05:28:52 +08:00
committed by GitHub
parent cf009a4ba2
commit 6f8979d017
87 changed files with 249 additions and 270 deletions
+1 -2
View File
@@ -38,8 +38,7 @@ func (NoOpAuthenticator) Open(dst, nonce, ciphertext, additionalData []byte) ([]
}
// FnvAuthenticator is an AEAD based on Fnv hash.
type FnvAuthenticator struct {
}
type FnvAuthenticator struct{}
// NonceSize implements AEAD.NonceSize().
func (*FnvAuthenticator) NonceSize() int {
+1 -2
View File
@@ -77,8 +77,7 @@ type CommandFactory interface {
Unmarshal(data []byte) (interface{}, error)
}
type CommandSwitchAccountFactory struct {
}
type CommandSwitchAccountFactory struct{}
func (f *CommandSwitchAccountFactory) Marshal(command interface{}, writer io.Writer) error {
cmd, ok := command.(*protocol.CommandSwitchAccount)