-
Notifications
You must be signed in to change notification settings - Fork 87
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
ReverseCodeMap, map unicode character to lists of short codes #35
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@joshblum PR Thanks!
@@ -99,7 +137,7 @@ func Println(a ...interface{}) (int, error) { | |||
|
|||
// Printf is fmt.Printf which supports emoji | |||
func Printf(format string, a ...interface{}) (int, error) { | |||
return fmt.Printf(compile(fmt.Sprintf(format, a...))) | |||
return fmt.Print(compile(fmt.Sprintf(format, a...))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a reason for this change?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed from the output of https://github.com/golangci/golangci-lint
$ golangci-lint run .
emoji_test.go:189:22: S1019: should use make([]byte, buff.Len()) instead (gosimple)
bc := make([]byte, buff.Len(), buff.Len())
^
emoji.go:140:20: SA1006: printf-style function with dynamic format string and no further arguments should use print-style function instead (staticcheck)
return fmt.Printf(compile(fmt.Sprintf(format, a...)))
^
Happy to move to a separate PR or remove if you want!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see . Thank you, I understand 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thought this might be useful upstream for shortcode alias support.