1. 05 Mar, 2012 8 commits
  2. 04 Mar, 2012 8 commits
  3. 03 Mar, 2012 6 commits
    • Andrew Gerrand's avatar
      godoc: hide "Subdirectories" subheading if it is the only section · 4314087b
      Andrew Gerrand authored
      R=golang-dev, bradfitz
      CC=golang-dev
      https://golang.org/cl/5731056
      4314087b
    • Rob Pike's avatar
      text/template: one more test case · 227a04d7
      Rob Pike authored
      Missed a case for variadic functions with too few arguments.
      The code passes, and with the right error, but might as well record the test case.
      
      R=golang-dev, bradfitz
      CC=golang-dev
      https://golang.org/cl/5732050
      227a04d7
    • Rob Pike's avatar
      text/template: clean up function values · f1d3ff16
      Rob Pike authored
      The recent addition of automatic function invocation generated
      some troublesome ambiguities. Restore the previous behavior
      and compensate by providing a "call" builtin to make it easy to
      do what the automatic invocation did, but in a clear and explicit
      manner.
      
      Fixes #3140.
      
      At least for now.
      
      R=golang-dev, dsymonds, r
      CC=golang-dev
      https://golang.org/cl/5720065
      f1d3ff16
    • Russ Cox's avatar
      cmd/go: fix relative imports again · 604f3751
      Russ Cox authored
      I tried before to make relative imports work by simply
      invoking the compiler in the right directory, so that
      an import of ./foo could be resolved by ./foo.a.
      This required creating a separate tree of package binaries
      that included the full path to the source directory, so that
      /home/gopher/bar.go would be compiled in
      tmpdir/work/local/home/gopher and perhaps find
      a ./foo.a in that directory.
      
      This model breaks on Windows because : appears in path
      names but cannot be used in subdirectory names, and I
      missed one or two places where it needed to be removed.
      
      The model breaks more fundamentally when compiling
      a test of a package that lives outside the Go path, because
      we effectively use a ./ import in the generated testmain,
      but there we want to be able to resolve the ./ import
      of the test package to one directory and all the other ./
      imports to a different directory.  Piggybacking on the compiler's
      current working directory is then no longer possible.
      
      Instead, introduce a new compiler option -D prefix that
      makes the compiler turn a ./ import into prefix+that,
      so that import "./foo" with -D a/b/c turns into import
      "a/b/c/foo".  Then we can invent a package hierarchy
      "_/" with subdirectories named for file system paths:
      import "./foo" in the directory /home/gopher becomes
      import "_/home/gopher/foo", and since that final path
      is just an ordinary import now, all the ordinary processing
      works, without special cases.
      
      We will have to change the name of the hierarchy if we
      ever decide to introduce a standard package with import
      path "_", but that seems unlikely, and the detail is known
      only in temporary packages that get thrown away at the
      end of a build.
      
      Fixes #3169.
      
      R=golang-dev, r
      CC=golang-dev
      https://golang.org/cl/5732045
      604f3751
    • Andrew Gerrand's avatar
      doc: remove roadmap document · 120c2238
      Andrew Gerrand authored
      R=golang-dev, bradfitz
      CC=golang-dev
      https://golang.org/cl/5726047
      120c2238
    • Andrew Gerrand's avatar
      doc: change wording on references page · aabf2ee8
      Andrew Gerrand authored
      R=golang-dev
      CC=golang-dev
      https://golang.org/cl/5728050
      aabf2ee8
  4. 02 Mar, 2012 18 commits