Standard library / crypto
crypto.Hash.Size()
Return digest length even if the implementation is not linked. Unknown identifiers panic. Expected stdout: '32\n'.
Formal Syntax & Structure
go syntaxgo
func (h Hash) Size() intReturn Value
int
Digest length in bytes.
Working Example
Example Snippetgo
package main
import ( "crypto" "fmt")
func main() { fmt.Println(crypto.SHA256.Size()) }