Comments (4)
@sjames-iberis unexported type should stop the generation only in case when destination .go file is not in the package of the interface. If the destination package is the same as the source package everything should work fine.
from gowrap.
Sorry, I don't understand. I have the trivial source service.go:
package egp
type Service interface {
Method(request reportRequest)
}
type reportRequest struct {
field string
}
I invoke gowrap with:
gowrap gen -d egp -i Service -t custtmp -o egp/out.go
and get the result:
failed to parse interface declaration: reportRequest: unexportable type
The destination .go file is in the same package as the interface, but I still see the error.
from gowrap.
@sjames-iberis Thanks, fixed! Can you please check that everything works fine for you?
from gowrap.
Confirming that this issue has been fixed. Thanks.
from gowrap.
Related Issues (20)
- template/retry: do not use time.After HOT 1
- Prometheus metric is not registered HOT 2
- Plugin for goland or another IDE HOT 1
- Unable to generate if destination directory does not contain go files HOT 1
- Allowing specifying custom package HOT 6
- Wrong position of package comment if template has no own `import` HOT 2
- Imports of modules with custom names are not included into generated code HOT 8
- Cannot iterate over m.Params names HOT 1
- comments on the top of generated file HOT 2
- Unable to install this package HOT 3
- Add Masterminds/sprig template functions HOT 1
- method.Declaration does not add package names in argument types and return types HOT 5
- gowrap version cmd
- .Interface.Methods no longer contains nested methods HOT 2
- Appear in Nixpkgs HOT 1
- Add support for build tags HOT 1
- Add support for internal packages HOT 2
- template path in generated code uses OS specific path separators HOT 1
- Method.ReturnsError is not a proper interface/implements check
- Merge generated file with existing instead of overwriting
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gowrap.