title: Getting access to functions from subdirectories
body: <p>I'm writing small app following <a href="http://golang.org/doc/code.html" rel="nofollow">http://golang.org/doc/code.html</a></p>
  
  <p>My directory tree looks like</p>
  
  <pre><code>-blog
    -bin
    -pkg
    -src
      -github.com
        -packages_that_i_imported
      -myblog
        -config
          routes.go
        server.go
  </code></pre>
  
  <p>my <code>server.go</code> file contains following code</p>
  
  <pre><code>package main
  
  import "..." //ommited imports
  
  
  func main(){
      r:= mux.InitRoutes()  //function from imported package
      Register_routes(r)  //function from routes.go
  }
  </code></pre>
  
  <p>And my routes.go</p>
  
  <pre><code>package main
  
  func Register_routes(r *Router){
    r.addRoute("test", "test", "test)
  }
  </code></pre>
  
  <p>But after I do <code>go run server.go</code>
  I'm getting following error</p>
  
  <pre><code>$ go run server.go 
  # command-line-arguments
  ./server.go:10: undefined: Register_routes
  </code></pre>
  
  <p>GOPATH variable points to my <code>/blog</code> folder</p>
  
  <p>What am I missing? Why go doesn't it see files in subdirectories?</p>
  
  <p>P.S. config/routes.go is part of server.go package</p>
  
  <p>P.P.S I have moved routes.go to the same folder as server.go, but the error is still present</p>