output slice without brackets

189 views
Skip to first unread message

Nuraini putri

unread,
Jan 14, 2023, 12:28:36 PM1/14/23
to golang-nuts
Hi, I wanna ask about How to print slice output without brackets?
DISCORD.png

Martin Schnabel

unread,
Jan 14, 2023, 1:54:20 PM1/14/23
to Nuraini putri, golang-nuts
Hi,

if you have string slice you can use strings.Join(slice, ", ").

Please do send text as text to mailing lists.

Hope this helps, have fun!


On 1/14/23 09:46, Nuraini putri wrote:
> Hi, I wanna ask about How to print slice output without brackets?
> DISCORD.png
>
> -- You received this message because you are subscribed to the
> Google Groups "golang-nuts" group. To unsubscribe from this group and
> stop receiving emails from it, send an email to
> golang-nuts...@googlegroups.com
> <mailto:golang-nuts...@googlegroups.com>. To view this
> discussion on the web visit
> https://groups.google.com/d/msgid/golang-nuts/9f81b592-33cb-4878-95b0-a21ad4e8c6efn%40googlegroups.com
>
>
>
>
>
>
>
>
>
>
>
>
<https://groups.google.com/d/msgid/golang-nuts/9f81b592-33cb-4878-95b0-a21ad4e8c6efn%40googlegroups.com?utm_medium=email&utm_source=footer>.
Reply all
Reply to author
Forward
0 new messages