S
S
Stas Vinokur2019-02-02 14:38:43
go
Stas Vinokur, 2019-02-02 14:38:43

How to make slice1 in Golang?

I'm trying to create a Slice : slice1 := {1,2,3} It throws an
error, what's the reason?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Semchenko, 2019-02-02
@0xcffaedfe

The problem is that you have not read the go book, go to the site and read it.

K
klim0v, 2019-02-06
@klim0v

slice1 := []int{1,2,3}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question