It might be a very basic and stupid question, but I'm stuck. As I understood from the documentation, the Available() function should return true
if the given hash function was imported. So, this code:
package main
import (
"crypto/md5"
"fmt"
)
func main() {
fmt.Println(md5.Available())
}
Should produce true
as an output. However, I get the "./main.go:10: undefined: md5.Available" error when trying to run code above. What am I missing? Thanks in advance.