Standard library / hash/crc32
hash/crc32.NewIEEE()
Create a streaming IEEE CRC-32 hash. Use Write for successive chunks and Sum32 for the numeric result. Sum uses big-endian order. This is not a cryptographic authentication primitive. Expected stdout: 'cbf43926\n'.
Formal Syntax & Structure
go syntaxgo
func NewIEEE() hash.Hash32Return Value
hash.Hash32
Fresh incremental 32-bit hash.
Working Example
Example Snippetgo
package main
import ( "fmt" "hash/crc32")
func main() { h := crc32.NewIEEE() h.Write([]byte("123")) h.Write([]byte("456789")) fmt.Printf("%08x\n", h.Sum32())}