Skip to content

Is there a way to exclude encoding/xml package from being imported when I import echo? #2467

Answered by aldas
sstylianides asked this question in Q&A
Discussion options

You must be logged in to vote

you can not exclude it. You can avoid using codepaths that execute that package.
These are following echo.Context methods:

  • c.XMLBlob()
  • c.XML()
  • c.XMLPretty()
  • c.Bind when your struct you are binding to is using xml: struct tag

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by sstylianides
Comment options

You must be logged in to vote
1 reply
@sstylianides
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants