Code Monkey home page Code Monkey logo

Comments (2)

hexdigest avatar hexdigest commented on August 19, 2024

Hey @geekofalltrades,

I think the problem here is a _test.go suffix rather than internal package because it works fine with internal packages.
Try putting the interface you're trying to generate decorator for somewhere else. There's not very much sense to parse test files.

Let me know if it's your case. I think I have to document it because it's not the first time people face this issue.

from gowrap.

geekofalltrades avatar geekofalltrades commented on August 19, 2024

This seemed to be working in a _test.go file when I moved that file out of an internal package.

Also, it makes sense to me to have this particular interface in a _test.go file, because I'm using it to test a custom gowrap template.

But, there was no non-_test.go-suffixed file in the directory, so possibly the whole directory was not registering as a Go package. And when I moved it out of the internal package, it was into a directory that had other go files in it that were not _test.go files.

from gowrap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.