holys / initials-avatar

Initials avatar for golang

Home Page:https://initials.herokuapp.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Making the project go gettable

gernest opened this issue · comments

Hey, kudos for the nice work. It will be great if the project was easy to install without the make instructions.

That can be easy if the name of the repository would have to change and remove the dash(-) character. I suggest you name it something like avatar .

That way, gor people who wants to install the command it can just type

go get  -v github.com/holys/avatar/cmd/avatar

And for those who want to install the library can just type

go get  -v github.com/holys/avatar

That is ofcourse after moving the contents of github.com/holys/initials-avatar/avatar to github.com/holys/avatar

@gernest Thanks for your suggestion. I will add go get-able command to Readme.md.
As for the name, dash will be fine. I just want to distinguish my project from other, like idenicon avatar.

@holys That is great. I will be hacking on the getInitials function defined here

If you don't mind can you explain a little bit about what do you mean by name initials so I can be sure to cover the edge cases? thanks in advance.

@gernest If you're going to be modifying getInitials, I recommend looking at grapheme clusters so you handle unicode characters properly. We did a bit of toying around on IRC and found this: https://play.golang.org/p/RMMO7luJvh

Hope that helps!