aboutsummaryrefslogtreecommitdiff
path: root/Doc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2019-04-24 21:43:38 -0700
committerIan Lance Taylor <iant@golang.org>2019-04-24 21:43:38 -0700
commit8a1c09e280e323ba48407a9a9ae86f19d1c7abbe (patch)
tree92ea7cc78824af6b446f601a5fb4210dd6d05934 /Doc
parentb04cc850ab86091dae6923ca128a2ea491c6b2c0 (diff)
downloadswig-8a1c09e280e323ba48407a9a9ae86f19d1c7abbe.tar.gz
Fix Go tests to run in module mode
Stop using relative imports and add a go.mod file. Tested against Go 1.6 through Go pre-1.13, and gccgo.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/Manual/Go.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/Manual/Go.html b/Doc/Manual/Go.html
index dbea7de96..cfa56dbcf 100644
--- a/Doc/Manual/Go.html
+++ b/Doc/Manual/Go.html
@@ -266,6 +266,13 @@ swig -go -help
ignored.</td>
</tr>
+<tr>
+<td>-import-prefix &lt;prefix&gt;</td>
+<td>A prefix to add when turning a %import prefix in the SWIG
+ interface file into an import statement in the Go file. For
+ example, with <code>-import-prefix mymodule</code>, a SWIG
+ interface file <code>%import mypackage</code> will become a Go
+ import statement <code>import "mymodule/mypackage"</code>.</td>
</table>