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

. #25533

Closed
d1743747 opened this issue May 24, 2018 · 1 comment
Closed

. #25533

d1743747 opened this issue May 24, 2018 · 1 comment

Comments

@d1743747
Copy link

Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

go1.10.1 linux/amd64

Does this issue reproduce with the latest release?

yes

What operating system and processor architecture are you using (go env)?

go1.10.1 linux/amd64

What did you do?

Convert a slice of 5 runes to a string.
https://play.golang.org/p/upYJo4tgf3b

What did you expect to see?

Expected slice to convert to string.

What did you see instead?

cannot convert aslice (type [5]rune) to type string

@d1743747 d1743747 changed the title Cast [n]rune -> string Cast [n]rune to string May 24, 2018
@mattn
Copy link
Member

mattn commented May 24, 2018

please use string(aslice[:]) instead.

@d1743747 d1743747 changed the title Cast [n]rune to string . May 24, 2018
@golang golang locked and limited conversation to collaborators May 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants