title: Package selection in Go
body: <p>I'm trying to write an application to pull status from a database, but I seem to be getting stuck on a really basic principle of the language.  I have the program written, but it doesn't compile due to the error <code>use of package time not in selector</code>.</p>
  
  <p>A really basic example (from play.golang.org's own test environment)</p>
  
  <pre><code>package main
  
  import (
      "fmt"
      "time"
  )
  
  func main() {
      s_str := time.Now()
      fmt.Println( printT(s_str) )
  }
  
  func printT(t time) time {
      return t.Add(100)
  }
  </code></pre>
  
  <p>Unfortunately, I've found documentation and helpdocs online a bit wanting.  My understanding is that the <code>import</code> statement should include the library for the entire program like in C++ correct?</p>