亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

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]


正在回答

1 回答

這是系統對應的版本不同引起的

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

go test -v 有問題, 系統為Mac OS 10.14 go1.13.8

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號