Skip to content
This repository was archived by the owner on Jun 8, 2021. It is now read-only.

Add request parse key #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Add request parse key #25

wants to merge 1 commit into from

Conversation

Pryz
Copy link
Contributor

@Pryz Pryz commented Jul 12, 2017

This PR add a simple parseKey function to be used to identify the key of a request.

return k
}
return key
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One way to implement this more efficiently would be to use the strings.IndexByte function and return a subslice of the original string, do you want to give it a shot?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah I wanted this kind of feedback :) doing it now :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants