github.com/code-reading/golang@v0.0.0-20220303082512-ba5bc0e589a3/go/src/plugin/plugin_stubs.go (about)

     1  // Copyright 2016 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 (!linux && !freebsd && !darwin) || !cgo
     6  // +build !linux,!freebsd,!darwin !cgo
     7  
     8  package plugin
     9  
    10  import "errors"
    11  
    12  func lookup(p *Plugin, symName string) (Symbol, error) {
    13  	return nil, errors.New("plugin: not implemented")
    14  }
    15  
    16  func open(name string) (*Plugin, error) {
    17  	return nil, errors.New("plugin: not implemented")
    18  }