Commit Graph

3 Commits

Author SHA1 Message Date
Sebastien Binet d8d6050a7f bind,_examples: apply goimports 2017-06-08 14:24:00 +02:00
Sebastien Binet 2570eebb8d all: gofmt 2015-09-08 08:51:35 +02:00
Kyle Ellrott e40a2535ee bind: ignore private fields in structs
This patch adds a check so that the types of private fields aren't exported
to the wrapper.
This is useful if writing a 'wrapper' package that buffers the python code
from complex Go concepts that aren't yet wrapped for python (like pointers
and channels).
The code:
 _examples/wrapper/real_code.go and
 _examples/wrapper/pywrapper/wrapper_code.go
can be compiled with the command:
 gopy bind github.com/go-python/gopy/_examples/wrapper/pywrapper
and the functions manipulate Go classes gopy doesn't yet support, but they
are private, and not exported, so now the code will compile.

Fixes #60.
2015-09-03 19:53:08 +02:00