andyhui686666
2020-02-17 12:13
$ 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]
这是系统对应的版本不同引起的
Go开发短地址服务
5565 学习 · 27 问题
相似问题