commit | f6436c60e49f17f2ca723fdf76a0cb4323cbe02c | [log] [tgz] |
---|---|---|
author | Erik Pellizzon <erikpellizzon1@gmail.com> | Wed Sep 14 10:13:06 2022 +0000 |
committer | Gopher Robot <gobot@golang.org> | Thu Sep 15 21:07:21 2022 +0000 |
tree | 5ee30bbf3ac5fd4c7fcc8b8a97fc7accdc36b18f | |
parent | a7db14241cf59f9d3bf4e1a68cf9e503e1a05211 [diff] |
hash/crc32: remove redundant code Merge the CRC32 Update and Write functions using an unexported function, to avoid duplication of code and make it more readable. The only difference between them is the check of the initialization of the IEEE table, and a boolean value specifies that. Throughout the crc32.go file, in the switches the default value is inserted inside the switch statement, this change uniforms the style of the MakeTable function, making it like the other pieces of code. Change-Id: I3889f6c6671210c82f0d7250cea67907bccf3ce7 GitHub-Last-Rev: b8777ee213f2ebad0bb4a5dcdb812fd356d6d086 GitHub-Pull-Request: golang/go#55044 Reviewed-on: https://go-review.googlesource.com/c/go/+/430456 Auto-Submit: Ian Lance Taylor <iant@google.com> Reviewed-by: Jenny Rakoczy <jenny@golang.org> Reviewed-by: Ian Lance Taylor <iant@google.com> Run-TryBot: Jenny Rakoczy <jenny@golang.org> Auto-Submit: Jenny Rakoczy <jenny@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Ian Lance Taylor <iant@google.com>
Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.
Gopher image by Renee French, licensed under Creative Commons 3.0 Attributions license.
Our canonical Git repository is located at https://go.googlesource.com/go. There is a mirror of the repository at https://github.com/golang/go.
Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.
Official binary distributions are available at https://go.dev/dl/.
After downloading a binary release, visit https://go.dev/doc/install for installation instructions.
If a binary distribution is not available for your combination of operating system and architecture, visit https://go.dev/doc/install/source for source installation instructions.
Go is the work of thousands of contributors. We appreciate your help!
To contribute, please read the contribution guidelines at https://go.dev/doc/contribute.
Note that the Go project uses the issue tracker for bug reports and proposals only. See https://go.dev/wiki/Questions for a list of places to ask questions about the Go language.