title: Go 'mod init' creating new folders? what is the significance of path?
body: <p>Just 3 days experience in Go language. Hope an example will be more apt to understand my confusion.</p>
  <pre><code>root@freebsd1:/usr/home/arun/go-start/src/test2 # go mod init f1/f2/f3/f4/f5/hello
  go: creating new go.mod: module f1/f2/f3/f4/f5/hello
  root@freebsd1:/usr/home/arun/go-start/src/test2 #
  </code></pre>
  <p>Here in above example <code>go mod init</code> is creating all these folders(<code>f1/f2/f3/f4/f5/hello</code>)?. I searched a lot, couldn't find any such folders in system. <strong>Then what is the significance of this path.</strong></p>
  <p>Even though below command will not run if this path is not mentioned as it is</p>
  <pre><code># go install f1/f2/f3/f4/f5/hello
  </code></pre>
  <p><strong>--:EDIT:--</strong></p>
  <p>May be this will help someone later ( Just walk through the steps to understand this in a proper way, especially for newbies )</p>
  <ol>
  <li><p>I am planning to create a program 'calculator' and will upload in GitHub later.</p>
  </li>
  <li><p>I will keep the functions in different packages like <code>sum</code>,<code>multiply</code> etc</p>
  </li>
  <li><p>first step <code>#go mod init github.com/go-arun/calculator</code>( Don't confuse here , this is just an assumption that, in future I may create a repository in github for this project )</p>
  </li>
  <li><p>created folder <code>sum</code>(one of the package folder , and created <code>sum.go</code> inside )</p>
  </li>
  </ol>
  <p>See those in by system:</p>
  <p><strong>1.</strong></p>
  <pre><code>root@debian1:/home/arun/lab# go mod init github.com/go-arun/calculator
  go: creating new go.mod: module github.com/go-arun/calculator
  
  root@debian1:/home/arun/lab# cat go.mod
  module github.com/go-arun/calculator
  
  go 1.15
  </code></pre>
  <p><strong>2.</strong></p>
  <pre><code>root@debian1:/home/arun/lab# cat sum/sum.go
  package sum
  
  import &quot;fmt&quot;
  
  func Sum(num1,num2 int)(){
          fmt.Println(num1+num2)
  
  }
  </code></pre>
  <p><strong>3.</strong></p>
  <pre><code>root@debian1:/home/arun/lab# cat main.go
  package main
  
  import(
          &quot;github.com/go-arun/calculator/sum&quot;
  )
  
  func main(){
          n1 := 10
          n2 := 10
  
          sum.Sum(n1,n2)
  }
  </code></pre>
  <p><strong>4.</strong></p>
  <pre><code>root@debian1:/home/arun/lab# tree
  .
  |-- go.mod
  |-- main.go
  `-- sum
      `-- sum.go
  </code></pre>