Skip to content
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

Atualizações no Body, Bind e Response - CORREÇÃO para executar na chamada do MÉTODO #31

Open
jeffotoni opened this issue Feb 28, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@jeffotoni
Copy link
Owner

Atualizações no Body, Bind e Response -
- CORREÇÃO para executar na chamada do MÉTODO

Body() -> retornará byte -> e só poderá ser executado depois de um BodyParser sem ele vc não tem bytes ..

Bind(&myInterface) -> é um json.NewDecoder então não temos os bytes , e a função Body() irá fazer json.Marshal do objeto então só poderá ser feito depois do Bind()

BodyParse(&myInterface) -> é um io.ReadAll nele já temos Byte do Body()

@jeffotoni jeffotoni added the bug Something isn't working label Feb 28, 2023
@jeffotoni
Copy link
Owner Author

@rAndrade360

@jeffotoni jeffotoni linked a pull request Feb 28, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant