-
Notifications
You must be signed in to change notification settings - Fork 382
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option to replace types #205
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, I'm using gowsdl to generate code for an ancient API.
The problem I ran into is while their WSDL definition states something is a
time.Time
the actual format of the string is not one thattime.Parse
can use. It would be great if there was an option on the CLI to specify that anytime.Time
instances should bestring
instead.To do this myself, I've had to do a bit of
sed
magic ingo:generate
directives:While I don't mind doing it this way, I figure many people who are using soap and go are probably dealing with old APIs that have quirks like this one. So perhaps some built-in way of replacing types would be beneficial? What do you think?
I appreciate it's probably a non-goal of this tool, since the API itself is doing something it shouldn't.
The text was updated successfully, but these errors were encountered: