]> Cypherpunks.ru repositories - gostls13.git/commitdiff
plugin: remove unnecessary import "C" from example
authorFrancesc Campoy <campoy@golang.org>
Thu, 9 Feb 2017 03:12:19 +0000 (19:12 -0800)
committerFrancesc Campoy Flores <campoy@golang.org>
Thu, 9 Feb 2017 18:32:53 +0000 (18:32 +0000)
It seems that it is not needed to import the pseudo package "C"
for the plugin to be built correctly.
Removing it to avoid confusion.

Change-Id: I62838a953ad2889881bfbfd1a36141661565f033
Reviewed-on: https://go-review.googlesource.com/36638
Reviewed-by: David Crawshaw <crawshaw@golang.org>
src/plugin/plugin.go

index b86099a4f6f0206aeb9a0dbf182243a74d4e0712..3dc79640487ee3adb7895d45df5d80559cb340af 100644 (file)
@@ -44,9 +44,6 @@ func (p *Plugin) Lookup(symName string) (Symbol, error) {
 //
 //     package main
 //
-//     // // No C code needed.
-//     import "C"
-//
 //     import "fmt"
 //
 //     var V int