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

xml: self-closing XML tags #10

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

xml: self-closing XML tags #10

wants to merge 1 commit into from

Conversation

ydnar
Copy link
Contributor

@ydnar ydnar commented Oct 24, 2023

This PR tracks the self-closing feature as a single commit, stackable on top of golang/go#48641.

To use, add the following line to your go.mod file and run go mod tidy:

require github.com/nbio/xml self-closing

@ydnar ydnar marked this pull request as draft October 24, 2023 18:44
@ydnar ydnar self-assigned this Oct 24, 2023
add ,selfclosing flag to xml struct tags

support ,selfclosing flag on XMLName fields
@ydnar ydnar changed the title xml: implement self-closing XML tags xml: self-closing XML tags Oct 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant