1
0
mirror of https://github.com/golang/go synced 2024-11-27 04:01:19 -07:00

cmd/go: fix documentation for exported functions

I accidentally submitted https://golang.org/cl/13080 too early.

Update #11955.

Change-Id: I1a5a6860bb46bc4bc6fd278f8a867d2dd9e411e1
Reviewed-on: https://go-review.googlesource.com/13096
Reviewed-by: Andrew Gerrand <adg@golang.org>
This commit is contained in:
Ian Lance Taylor 2015-08-03 12:49:00 -07:00
parent a1d093d95d
commit c2ef8e752f
2 changed files with 8 additions and 8 deletions

View File

@ -781,14 +781,14 @@ are:
-buildmode=c-archive
Build the listed main package, plus all packages it imports,
into a C archive file. The only callable symbols will be those
functions marked as exported by the cgo tool. Requires exactly
one main package to be listed.
functions exported using a cgo //export comment. Requires
exactly one main package to be listed.
-buildmode=c-shared
Build the listed main packages, plus all packages that they
import, into C shared libraries. The only callable symbols will
be those functions marked as exported by the cgo tool. Non-main
packages are ignored.
be those functions exported using a cgo //export comment.
Non-main packages are ignored.
-buildmode=default
Listed main packages are built into executables and listed

View File

@ -548,14 +548,14 @@ are:
-buildmode=c-archive
Build the listed main package, plus all packages it imports,
into a C archive file. The only callable symbols will be those
functions marked as exported by the cgo tool. Requires exactly
one main package to be listed.
functions exported using a cgo //export comment. Requires
exactly one main package to be listed.
-buildmode=c-shared
Build the listed main packages, plus all packages that they
import, into C shared libraries. The only callable symbols will
be those functions marked as exported by the cgo tool. Non-main
packages are ignored.
be those functions exported using a cgo //export comment.
Non-main packages are ignored.
-buildmode=default
Listed main packages are built into executables and listed