diff options
author | Ondřej Surý <ondrej@sury.org> | 2011-09-13 13:13:40 +0200 |
---|---|---|
committer | Ondřej Surý <ondrej@sury.org> | 2011-09-13 13:13:40 +0200 |
commit | 5ff4c17907d5b19510a62e08fd8d3b11e62b431d (patch) | |
tree | c0650497e988f47be9c6f2324fa692a52dea82e1 /src/cmd/gopack/doc.go | |
parent | 80f18fc933cf3f3e829c5455a1023d69f7b86e52 (diff) | |
download | golang-upstream/60.tar.gz |
Imported Upstream version 60upstream/60
Diffstat (limited to 'src/cmd/gopack/doc.go')
-rw-r--r-- | src/cmd/gopack/doc.go | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/cmd/gopack/doc.go b/src/cmd/gopack/doc.go new file mode 100644 index 000000000..1551a275f --- /dev/null +++ b/src/cmd/gopack/doc.go @@ -0,0 +1,26 @@ +// Copyright 2009 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +/* + +Gopack is a variant of the Plan 9 ar tool. The original is documented at + + http://plan9.bell-labs.com/magic/man2html/1/ar + +It adds a special Go-specific section __.PKGDEF that collects all the +Go type information from the files in the archive; that section is +used by the compiler when importing the package during compilation. + +Usage: gopack [uvnbailogS][mrxtdpq][P prefix] archive files ... + +The new option 'g' causes gopack to maintain the __.PKGDEF section +as files are added to the archive. + +The new option 'S' forces gopack to mark the archive as safe. + +The new option 'P' causes gopack to remove the given prefix +from file names in the line number information in object files +that are already stored in or added to the archive. +*/ +package documentation |