н
Size: a a a
н
н
н
н
н
н
M
M
→ go test ./...
# runtime/cgo
In file included from gcc_darwin_amd64.c:6:
/usr/local/include/pthread.h:331:6: error: macro expansion producing 'defined' has undefined behavior [-Werror,-Wexpansion-to-defined]
...
# масса таких же ошибок
CGO_ENABLED=0 go test ./... -всё работает.
go version go1.15 darwin/amd64
export CGO_CPPFLAGS="-Wno-error -Wno-nullability-completeness -Wno-expansion-to-defined -Wno-builtin-requires-header"
AS
export CGO_CPPFLAGS="-Wno-error -Wno-nullability-completeness -Wno-expansion-to-defined -Wno-builtin-requires-header"
M
R
echo 'hello' | sha256sum
5891b5b522d5df086d0ff0b110fbd9d21bb4fc7163af34d08286a2e846f6be03 -
func main() {
d := sha256.Sum256([]byte("hello"))
fmt.Println(hex.EncodeToString(d[:]))
}
2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824
VT
echo 'hello' | sha256sum
5891b5b522d5df086d0ff0b110fbd9d21bb4fc7163af34d08286a2e846f6be03 -
func main() {
d := sha256.Sum256([]byte("hello"))
fmt.Println(hex.EncodeToString(d[:]))
}
2cf24dba5fb0a30e26e83b2ac5b9e29e1b161e5c1fa7425e73043362938b9824
echo -n 'hello' | sha256sum
VT
VS
VT