mirror of https://go.googlesource.com/go
plugin: add available godoc link
Change-Id: I371b52215d3f9efdcab1439e7215f340dbf1ec08 Reviewed-on: https://go-review.googlesource.com/c/go/+/539598 Run-TryBot: shuang cui <imcusg@gmail.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Heschi Kreinick <heschi@google.com> Reviewed-by: Cherry Mui <cherryyz@google.com>changes/98/539598/2
parent
7dd9437133
commit
f8c5d04e55
|
@ -74,7 +74,7 @@ type Plugin struct {
|
|||
}
|
||||
|
||||
// Open opens a Go plugin.
|
||||
// If a path has already been opened, then the existing *Plugin is returned.
|
||||
// If a path has already been opened, then the existing *[Plugin] is returned.
|
||||
// It is safe for concurrent use by multiple goroutines.
|
||||
func Open(path string) (*Plugin, error) {
|
||||
return open(path)
|
||||
|
@ -100,7 +100,7 @@ func (p *Plugin) Lookup(symName string) (Symbol, error) {
|
|||
//
|
||||
// func F() { fmt.Printf("Hello, number %d\n", V) }
|
||||
//
|
||||
// may be loaded with the Open function and then the exported package
|
||||
// may be loaded with the [Open] function and then the exported package
|
||||
// symbols V and F can be accessed
|
||||
//
|
||||
// p, err := plugin.Open("plugin_name.so")
|
||||
|
|
Loading…
Reference in New Issue