summaryrefslogtreecommitdiff
path: root/Examples/go
Commit message (Collapse)AuthorAgeFilesLines
* Use https for swig.org linksOlly Betts2022-10-061-1/+1
|
* Cosmetic stray semi-colon removal after %typemap using quotesWilliam S Fulton2022-08-311-2/+2
|
* [Go] Add an example for goin and godirectorinCorey Minyard2022-04-186-0/+190
| | | | | | | | | | | Shows how to use a go directory for passing an NULL terminated argv type array. This also exercises the bug in the previous commit. That's why the call1 function isn't assigned to zero, that the only case where that bug happens. Signed-off-by: Corey Minyard <cminyard@mvista.com>
* Fix all Go tests to build with "go build"Ian Lance Taylor2019-08-0813-13/+13
| | | | | | Tested against Go 1.6 through Go 1.13beta1, and gccgo. Fixes #1607
* Fix Go tests to run in module modeIan Lance Taylor2019-04-2413-13/+26
| | | | | | Stop using relative imports and add a go.mod file. Tested against Go 1.6 through Go pre-1.13, and gccgo.
* Misc. typosluz.paz2018-05-171-2/+2
| | | found via `codespell` and `grep`
* fix swig/swig#600 and fix swig/swig#955Fabrice Benhamouda2017-06-171-1/+1
|
* Remove use of preinst-swig scriptWilliam S Fulton2015-08-2113-29/+55
| | | | | | | | | | | | | Complete the prototype removal in ca1431. The script prevents SWIGTOOL=gdb from working as gdb can't be used to debug a shell script, it requires a binary. Add support for SWIGTOOL in all the examples. SWIG_LIB_DIR and SWIGEXE must now instead be set by all Makefiles. See issue #473.
* [Go] Renamed 'FooBarAbs' to 'FooBarAbstract' in the documentation and examples.Michael Schaller2015-08-094-43/+45
|
* [Go] Updated the 'callback' and 'extend' examples to match the 'director' one.Michael Schaller2015-08-0912-100/+130
| | | | | After the documentation update on how to utilize the director feature with commit @17b1c1c the 'callback' and 'extend' examples needed an update as well.
* [Go] Revert commit 5e88857 to undelete the 'callback' and 'extend' examples.Michael Schaller2015-08-0914-1/+374
| | | | | | | The 'callback' and 'extend' examples were presumed to be obsoleted by the new 'director' example. The examples are helpful though to have similar examples across target languages and hence the commit @5e88857 which removed these examples got reverted.
* [Go] update build instructions in Examples/go/index.htmlIan Lance Taylor2015-08-051-17/+25
|
* [Go] Documentation cleanup of obsolete 'callback' and 'extend' examples.Michael Schaller2015-08-0514-376/+3
| | | | | After commit 17b1c1c (pull request 447; issue 418) the 'callback' and 'extend' examples have been removed in favor of the 'director' example.
* Some minor changes after first code review by ianlancetaylor.Michael Schaller2015-08-041-6/+6
| | | | | Renamed overwritenMethodsOnFooBarAbs to overwrittenMethodsOnFooBarAbs. Changed some line breaks.
* Fixed Examples/go/director/Makefile as there might be no copy of director.go ↵Michael Schaller2015-08-041-1/+1
| | | | during clean if a separate build directory is in use.
* Fixed Examples/go/director/Makefile as the copy of director.go wasn't ↵Michael Schaller2015-08-041-0/+3
| | | | cleaned up in separate build directories.
* Fixed Examples/go/director/Makefile as director.go was missing in separate ↵Michael Schaller2015-08-041-0/+3
| | | | build directories.
* Fleshed out Go's documentation about the director feature and added a ↵Michael Schaller2015-08-047-0/+207
| | | | | | director example. Fixes issues #418.
* Remove unused std_string.i from callback examplesWilliam S Fulton2015-05-101-2/+0
|
* [Go] Fix Go multimap example to use Swig_AllocateString and swigCopyString.Ian Lance Taylor2015-05-041-2/+7
|
* Eliminate trivial differences between the reference examplesOlly Betts2014-11-072-5/+1
|
* Remove bogus ; after } in examplesOlly Betts2014-11-071-2/+2
|
* Fix compiler warnings in examples when using -std=c++98 -std=gnu89 -pedantic ↵William S Fulton2014-05-242-2/+2
| | | | -Wreturn-type
* Allow examples and test-suite to be built out of source treeKarl Wette2014-05-1112-36/+36
| | | | | | | | | | | | | | | | | | | | | | | - Examples/Makefile.in rules use SRCDIR as the relative source directory - ./config.status replicates Examples/ source directory tree in build directory, and copies each Makefile to build directory, prefixed with a header which sets SRCDIR to source directory - Examples/test-suite/.../Makefile.in set SRCDIR from Autoconf-set srcdir - Examples/test-suite/errors/Makefile.in needs to filter out source directory from SWIG error messages - Lua: embedded interpreters are passed location of run-time test - Python: copy run-time scripts to build directory because of 2to3 conversion; import_packages example copies __init__.py from source directory; test-suite sets SCRIPTDIR to location of run-time tests - Javascript: binding.gyp renamed to binding.gyp.in so that $srcdir can be substituted with SRCDIR; removed './' from require() statements so that NODE_PATH can be used to point Node.js to build directory
* More cleaning up of the class examplesOlly Betts2014-05-052-9/+9
|
* Whitespace cleanup of Example MakefilesKarl Wette2014-04-162-2/+2
|
* Further cleaning up of class examplesOlly Betts2014-02-242-16/+10
|
* Fix assorted comment and documentation typosOlly Betts2014-02-231-1/+1
|
* In Examples/Makefile.in, compile and link the program in go andIan Lance Taylor2013-12-206-6/+6
| | | | go_cpp, rather than in go_run. This permits eliminating go_run_cpp.
* Update for Go 1.2 release. Add support for linking SWIG code directlyIan Lance Taylor2013-12-1622-22/+22
| | | | into executable, rather than using a shared library.
* Fix gcc -Waddress warning in variables examplesWilliam S Fulton2013-10-181-1/+1
|
* Fix typosOlly Betts2013-09-251-1/+1
|
* Go examples and test-suite format fixesWilliam S Fulton2013-07-0112-12/+12
| | | | | | Patch has the results of find . -name *.go -exec gofmt -w {} \; SF Patch #339.
* Go examples makefiles clean target fixed and use RUNPIPE and tidyupWilliam S Fulton2013-04-1912-81/+63
|
* Run gofmt on hand written Go code.Ian Lance Taylor2011-08-221-1/+0
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12781 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* For Go: Fix handling of INPUT variables when using typemaps.i. ThisIan Lance Taylor2011-02-201-1/+1
| | | | | | | | fixes cases where the gotype typemap is used to produce a simple Go type for a non-simple C/C++ type. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12498 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* Remove generated files from svn for Go examplesWilliam S Fulton2010-11-2612-1705/+0
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12316 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* Update the instructions to say that you also need to compile the codeIan Lance Taylor2010-06-161-2/+4
| | | | | | | itself. git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12133 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* Rename "go" typemap to "gotype".Ian Lance Taylor2010-06-151-3/+3
| | | | git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12129 626c5289-ae23-0410-ae9c-e8d60b6d4f22
* Add support for the Go programming language.Ian Lance Taylor2010-06-1079-0/+4525
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@12108 626c5289-ae23-0410-ae9c-e8d60b6d4f22