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

Export stringToGuid and shorten it a bit. #4

Closed
wants to merge 2 commits into from

Conversation

smoser
Copy link
Contributor

@smoser smoser commented Feb 8, 2019

No description provided.

Scott Moser added 2 commits February 8, 2019 17:12
This just exports 'stringToGuid' so that it can be used from a caller.
I was reading string representation of uuids and needed to feed
them into a guid for gpt.
This just uses stringconv.ParseUint to shorten the stringToGuid method.
@rekby
Copy link
Owner

rekby commented Feb 9, 2019

Hello smoser.

I'm OK to do StringToGuid public if you need in your project project.
But I'm against changing body of function:
convert every char to string, then parse string - is very extensive solution.

It have right to exist if it first version - for simpler write first time.
But I don't see reason to change fast function to slower.

@smoser
Copy link
Contributor Author

smoser commented Feb 9, 2019 via email

@rekby
Copy link
Owner

rekby commented Feb 9, 2019

I make function public.

@rekby rekby closed this Feb 9, 2019
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.

None yet

2 participants