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

Add a function to get the value of a field by path and indexation. #6

Merged
merged 3 commits into from
Jul 29, 2019

Conversation

eloyucu
Copy link

@eloyucu eloyucu commented Jul 29, 2019

Add a function to get the value of a field by path and indexation.

@tamerh
Copy link
Owner

tamerh commented Jul 29, 2019

Hi Eloy,

This is cool thanks for adding. First impressions,

Why no function receiver, maybe receiver of XMLElement and remove the first parameter from function?

and instead GetField name how about GetValue isn't it more informative?

Tamer

@eloyucu
Copy link
Author

eloyucu commented Jul 29, 2019

Hi @tamerh here you have ;)

@tamerh
Copy link
Owner

tamerh commented Jul 29, 2019

Great. Just better with pointer receiver? And i guess both "else" are not needed as golint gives me warning?

@eloyucu
Copy link
Author

eloyucu commented Jul 29, 2019

ok!! Done :)

@tamerh tamerh merged commit 763cb39 into tamerh:master Jul 29, 2019
@tamerh
Copy link
Owner

tamerh commented Jul 29, 2019

Merged:)

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.

2 participants