title: 2D array or 2D slice for Tic-Tac-Toe board?
body: <p>I started to learn GoLang and meet trouble. When i tried to pass array (which size is defined after enter them from output) to the function a get error like "sorry but you type [][]string is not like [][]string". I tried different ways but can't cope with it. Any suggestions? </p>
  
  <p>There is the main func:</p>
  
  <pre><code>func main(){
  fmt.Println("Enter number of rows: ")
  fmt.Scanf("%d", &amp;size)
  var board [size][size]string
  for i:=0;i&lt;size;i++{
      for j:=0;j&lt;size;j++{
          board[i][j] = "_"
      }
  }
  fmt.Println("Choose side of fight (X, 0): ")
  fmt.Scanf("%s", &amp;opt)
  fmt.Printf("Your side is %s\n", opt)
  for !win{
      printBoard(board, size)
      fmt.Println("Your move(a b, \"a\" is number of row, \"b\" is number of column: ")
      fmt.Scanf("%d %d", &amp;move[0], &amp;move[1])
      if move[0]&gt;=1 &amp;&amp; move[1]&gt;=1 &amp;&amp; move[0]&lt;=3 &amp;&amp; move[1]&lt;=3{
          board[move[0]-1][move[1]-1] = opt
      }
      bot(&amp;board, size)
      win, winner = checkWin(board, opt, size)
  }
  }
  </code></pre>
  
  <p>And example of function which depart take array:</p>
  
  <pre><code>func printBoard(in [][]string, size int){
  for k:=0;k&lt;size+1;k++{
      fmt.Printf("%d\t", k)
  }
  fmt.Println()
      for i:=0;i&lt;size;i++{
          fmt.Printf("%d ", i+1)
      for j:=0;j&lt;size;j++     {
          fmt.Printf("\t%s", in[i][j])
      }
      fmt.Print("\n")
  }
  fmt.Print("\n")
  }
  </code></pre>
  
  <p>The ouput that I am trying to achieve is for Tic/Tac toe game. for eg:-</p>
  
  <pre><code>Enter number of rows: 3 Choose side of fight (X, 0): X 
  Your side is X  0   1   2   3   1 _ _   _ 2 _   _   _ 3 _   _   _ 
  Your move(a b, "a" is number of row, "b" is number of column: 1 1 0 1   2   3   1 X _   _ 2 _   _   _ 3 _   _   _ 
  Your move(a b, "a" is number of row, "b" is number of column: 2 2 0 1   2   3   1 X _   _ 2 _   X   _ 3 _   _   _ 
  Your move(a b, "a" is number of row, "b" is number of column: 3 3 0 1   2   3   1 X _   _ 2 _   X   _ 3 _   _   X You're winner!!!
  </code></pre>