golang.org/x/exp@v0.0.0-20240506185415-9bf2ced13842/cmd/macos-roots-test/root_nocgo_darwin.go (about)

     1  // Copyright 2019 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  //go:build !cgo
     6  
     7  package main
     8  
     9  import (
    10  	"crypto/x509"
    11  	"errors"
    12  )
    13  
    14  func loadSystemRoots() (*x509.CertPool, error) {
    15  	return nil, errors.New("can't load system roots: cgo not enabled")
    16  }