Skip to content

Commit

Permalink
plugin: add available godoc link
Browse files Browse the repository at this point in the history
Change-Id: I371b52215d3f9efdcab1439e7215f340dbf1ec08
Reviewed-on: https://go-review.googlesource.com/c/go/+/539598
Run-TryBot: shuang cui <[email protected]>
TryBot-Result: Gopher Robot <[email protected]>
Reviewed-by: Heschi Kreinick <[email protected]>
Reviewed-by: Cherry Mui <[email protected]>
  • Loading branch information
cuishuang authored and cherrymui committed Nov 6, 2023
1 parent 7dd9437 commit f8c5d04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugin/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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")
Expand Down

0 comments on commit f8c5d04

Please sign in to comment.