Commit c2ef8e75 authored by Ian Lance Taylor's avatar Ian Lance Taylor

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/13096Reviewed-by: 's avatarAndrew Gerrand <adg@golang.org>
parent a1d093d9
...@@ -781,14 +781,14 @@ are: ...@@ -781,14 +781,14 @@ are:
-buildmode=c-archive -buildmode=c-archive
Build the listed main package, plus all packages it imports, Build the listed main package, plus all packages it imports,
into a C archive file. The only callable symbols will be those into a C archive file. The only callable symbols will be those
functions marked as exported by the cgo tool. Requires exactly functions exported using a cgo //export comment. Requires
one main package to be listed. exactly one main package to be listed.
-buildmode=c-shared -buildmode=c-shared
Build the listed main packages, plus all packages that they Build the listed main packages, plus all packages that they
import, into C shared libraries. The only callable symbols will import, into C shared libraries. The only callable symbols will
be those functions marked as exported by the cgo tool. Non-main be those functions exported using a cgo //export comment.
packages are ignored. Non-main packages are ignored.
-buildmode=default -buildmode=default
Listed main packages are built into executables and listed Listed main packages are built into executables and listed
......
...@@ -548,14 +548,14 @@ are: ...@@ -548,14 +548,14 @@ are:
-buildmode=c-archive -buildmode=c-archive
Build the listed main package, plus all packages it imports, Build the listed main package, plus all packages it imports,
into a C archive file. The only callable symbols will be those into a C archive file. The only callable symbols will be those
functions marked as exported by the cgo tool. Requires exactly functions exported using a cgo //export comment. Requires
one main package to be listed. exactly one main package to be listed.
-buildmode=c-shared -buildmode=c-shared
Build the listed main packages, plus all packages that they Build the listed main packages, plus all packages that they
import, into C shared libraries. The only callable symbols will import, into C shared libraries. The only callable symbols will
be those functions marked as exported by the cgo tool. Non-main be those functions exported using a cgo //export comment.
packages are ignored. Non-main packages are ignored.
-buildmode=default -buildmode=default
Listed main packages are built into executables and listed Listed main packages are built into executables and listed
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment