go test -v 有问题, 系统为Mac OS 10.14 go1.13.8
$ go test -v
# crypto/x509
/usr/local/go/src/crypto/x509/root_cgo_darwin.go:29:48: error: use of undeclared identifier 'kSecPolicyOid'
if (CFDictionaryGetValueIfPresent(properties, kSecPolicyOid, (const void **)&value)) {
^
/usr/local/go/src/crypto/x509/root_cgo_darwin.go:30:26: error: use of undeclared identifier 'kSecPolicyAppleSSL'; did you mean 'SecPolicyCreateSSL'?
isSSL = CFEqual(value, kSecPolicyAppleSSL);
^~~~~~~~~~~~~~~~~~
SecPolicyCreateSSL
/System/Library/Frameworks/Security.framework/Headers/SecPolicy.h:103:14: note: 'SecPolicyCreateSSL' declared here
SecPolicyRef SecPolicyCreateSSL(Boolean server, CFStringRef hostname);
^
2 errors generated.
FAIL github.com/xxxx/shorturl [build failed]