Giter VIP home page Giter VIP logo

Comments (2)

leogsouza avatar leogsouza commented on June 4, 2024

Hello! Does the project need the ability to package generated source code to prevent namespace conflicts? And each such package will have its own imports and dependencies among themselves, if necessary

I have already started doing this for my needs. If necessary, I can then make a pull request.

Hello @zhorzh-p, can you share your implementation? I am having problem when generating my code and two different xsd files have same element name

from gowsdl.

zhorzh-p avatar zhorzh-p commented on June 4, 2024

Hi @leogsouza, I added my implementation, it's here https://github.com/hunband/gowsdl/tree/pkgseparation

I added a new flag 'multi' that separates the generated code into packages.

The program will require you to specify the names of all packages:
Screenshot_1

It will then split the code into the packages you specified:
Screenshot_3

And in the end, so that there are no conflicts between the created packages, you can create a go module:
go mod init myservice
Screenshot_4

I'm also thinking of getting rid of manual entry of package names via a support config file. Also I haven't corrected/added tests yet. There are bugs and inaccuracies in the program which I will slowly correct.

I hope it helped.

from gowsdl.

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.